/db/apps/schleiermacher/register/orte/detail.xqlerr:XPTY0004 checking function parameter 1 in call response:redirect-to(untyped-value-check[xs:anyURI, $edweb:baseURL
"/redirect.xql?id="
collection(untyped-value-check[xs:string, $edweb:data])/descendant::element()[attribute::{}oldID = normalize-space($edweb:p_id) union attribute::{}olderID = normalize-space($edweb:p_id)]/attribute::xml:id
normalize-space(untyped-value-check[xs:string, .])
"&range="
$edweb:p_range
"&view="
$edweb:p_view cast as xs:anyURI]): XPTY0004: The actual cardinality for parameter collection(untyped-value-check[xs:string, $edweb:data])/descendant::element()[attribute::{}oldID = normalize-space($edweb:p_id) union attribute::{}olderID = normalize-space($edweb:p_id)]/attribute::xml:id
normalize-space(untyped-value-check[xs:string, .]) does not match the cardinality declared in the function's signature: zero or one. Expected cardinality: {3}, got {4}. [at line 23, column 84, source: /db/apps/schleiermacher/register/orte/detail.xql]