/db/apps/schleiermacher/register/orte/detail.xqlerr:XPTY0004 checking function parameter 1 in call format-date(untyped-value-check[xs:date, $item/child::tei:date/attribute::{}when
data()], "[D01]. [MNn] [Y0001]", "de", untyped-value-check[xs:string, ], untyped-value-check[xs:string, ]): Type mismatch: the actual type of parameter 1 does not match the type declared in the signature of function: format-date($value as xs:date?, $picture as xs:string, $language as xs:string?, $calendar as xs:string?, $place as xs:string?) xs:string?. Required type: xs:date, got xs:untypedAtomic. [at line 469, column 40, source: /db/apps/schleiermacher/register/functions.xql]
In function:
edwebRegister:viewChronologyEntries(item()*) [135:27:/db/apps/schleiermacher/register/functions.xql]