An error has occurred
An error has been generated by the application.
exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: tpu:parse-pi($doc as document-node(), $view as xs:string?, $odd as xs:string?) item()*. Expected cardinality: exactly one, got 0. [at line 64, column 33, source: /db/apps/bibliotheca/modules/lib/pages.xql] In function: tpu:parse-pi(document-node(), xs:string?, xs:string?) [64:20:/db/apps/bibliotheca/modules/lib/util.xql] pages:pb-document(node(), map(*), xs:string, xs:string?, xs:string?, xs:string?) [-1:-1:/db/apps/bibliotheca/modules/lib/pages.xql] templates:process-output(element(), map(*), item()*, element()) [211:9:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:call-by-introspection(element(), map(*), map(*), function(*)) [189:28:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:call(item(), element(), map(*)) [137:36:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:process(node()*, map(*)) [460:13:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] pages:pb-page(node(), map(*), xs:string?) [-1:-1:/db/apps/bibliotheca/modules/lib/pages.xql] templates:process-output(element(), map(*), item()*, element()) [211:9:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:call-by-introspection(element(), map(*), map(*), function(*)) [189:28:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:call(item(), element(), map(*)) [137:36:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:process(node()*, map(*)) [52:23:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] intl:translate(node(), map(*), xs:string?, xs:string?) [-1:-1:/db/apps/bibliotheca/modules/lib/i18n-templates.xql] templates:process-output(element(), map(*), item()*, element()) [211:9:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:call-by-introspection(element(), map(*), map(*), function(*)) [189:28:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:call(item(), element(), map(*)) [137:36:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:process(node()*, map(*)) [148:81:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:process(node()*, map(*)) [133:51:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:process(node()*, map(*)) [90:9:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql] templates:apply(node()+, function(*), map(*)?, map(*)?) [49:5:/exist/etc/../data/expathrepo/shared-0.8.4/content/templates.xql]