srophe / srophe-eXist-app

DEPRECATED eXist code for Syriaca.org: The Syriac Reference Portal
GNU General Public License v3.0
10 stars 12 forks source link

eXist error on bibl/2275 and bibl/2276 (dev) #1102

Closed nathangibson closed 6 years ago

nathangibson commented 6 years ago

@wsalesky I get the following error when I try to go to bibl/2275 or 2276 on dev server. (They work on production.) Is this a problem with the app or data? I don't see any XML validation errors.

exerr:ERROR XPTY0004: The actual cardinality for parameter 1 does not match the cardinality declared in the function's signature: normalize-space($arg as xs:string?) xs:string. Expected cardinality: zero or one, got 2. [at line 298, column 85, source: /db/apps/srophe/modules/lib/tei2html.xqm]
In function:
    tei2html:summary-view-generic(node()*, xs:string?) [133:7:/db/apps/srophe/modules/lib/tei2html.xqm]
    tei2html:summary-view(node()*, xs:string?, xs:string?) [155:29:/db/apps/srophe/modules/lib/tei2html.xqm]
    rel:cited(item()*, item()*, item()*) [358:5:/db/apps/srophe/modules/lib/get-related.xqm]
    app:cited(node(), map) [217:18:/db/apps/srophe/modules/app.xql]
    templates:call-with-args(function, function*, element(), map) [208:13:/apps/Syriaca/App/War/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
    templates:process-output(element(), map, item()*, element()) [205:9:/apps/Syriaca/App/War/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
    templates:call-by-introspection(element(), map, map, function) [187:28:/apps/Syriaca/App/War/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]
...
wsalesky commented 6 years ago

Fixed. @nathangibson That was an xquery issue.