Sorry, an error has occurred
Your request generated an error.
If you think this is a bug, you can help us by opening an issue here: sarit-existdb issues. To be useful, please copy the detailed error message (shown below), as well as the URL your browser is currently showing.
Detailed error message:
err:XPTY0004 checking function parameter 1 in call compression:zip(local:work2epub(untyped-value-check[xs:string, $id], pages:get-document(untyped-value-check[xs:string, $id])/child::tei:TEI, untyped-value-check[xs:string, request:get-parameter("lang", )]), true()): XPTY0004: The actual cardinality for parameter 2 does not match the cardinality declared in the function's signature: local:work2epub($id as xs:string, $work as element(), $lang as xs:string?) item()*. Expected cardinality: exactly one, got 0. [at line 50, column 71, source: /db/apps/sarit-pm/modules/lib/get-epub.xql] In function: local:work2epub(xs:string, element(), xs:string?) [50:50:/db/apps/sarit-pm/modules/lib/get-epub.xql]