error showing file with processing instruction
I have included at the top of my tei file. teipublisher.com is giving the following error when i click on the file to view.
An error has occurred
An error has been generated by the application.
err:XPTY0004 Type error: cannot compare operands: xs:integer and xs:string [at line 114, column 5] In function: nav:get-next(map, element()) [109:13:/db/apps/tei-publisher/modules/navigation-tei.xql] nav:get-next(map, element(), xs:string) [-1:-1:/db/apps/tei-publisher/modules/navigation-tei.xql] nav:dispatch(map, xs:string, array) [74:5:/db/apps/tei-publisher/modules/navigation.xql] nav:get-next(map, element(), xs:string) [353:49:/db/apps/tei-publisher/modules/navigation.xql] pages:navigation(node(), map, xs:string?) [219:18:/db/apps/tei-publisher/modules/lib/pages.xql] templates:call-with-args(function, function*, element(), map) [208:13:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item(), element()) [205:9:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [146:81:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [280:13:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item(), element()) [205:9:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [146:81:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [146:81:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [465:17:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item()) [273:9:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item(), element()) [205:9:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [146:81:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [425:9:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] pages:app-root(node(), map) [217:18:/db/apps/tei-publisher/modules/lib/pages.xql] templates:call-with-args(function, function, element(), map) [208:13:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process-output(element(), map, item(), element()) [205:9:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call-by-introspection(element(), map, map, function) [187:28:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:call(item(), element(), map) [135:36:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node(), map) [131:51:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:process(node()*, map) [88:9:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql] templates:apply(node()+, function, map?, map?) [49:5:/home/developer/exist/webapp/WEB-INF/data/expathrepo/shared-0.4.2/content/templates.xql]