/db/apps/megadigital/briefe/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)]/attribute::xml:id
normalize-space(untyped-value-check[xs:string, .]) 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)]/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 423, column 79, source: /db/apps/megadigital/resources/functions.xql]
In function:
edweb:getDoc(item()*) [35:16:/db/apps/megadigital/resources/functions.xql]