/db/apps/avhr/register/orte/detail.xqlerr:XPTY0004 checking function parameter 1 in call hc:send-request(element {"hc:request"} {
attribute {method} {
GET
}
attribute {href} {
concat("http://api.geonames.org/get?geonameId=", edwebRegister:cleanGeoName($id), "&username=dumont&style=SHORT")
}
} ): XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: normalize-space($arg as xs:string?) xs:string. Expected cardinality: zero or one, got 2. [at line 1013, column 33, source: /db/apps/avhr/register/functions.xql]
In function:
edwebRegister:cleanGeoName(item()*) [1031:108:/db/apps/avhr/register/functions.xql]
edwebRegister:getGeoName(item()*) [88:47:/db/apps/avhr/register/functions.xql]