From: Ihe O. <ihe...@go...> - 2012-06-24 00:51:48
|
Here is my XProc - it is adapted from the pxquery2.xproc example in the XProc examples directory. <p:pipeline xmlns:c="http://www.w3.org/ns/xproc-step" xmlns:p="http://www.w3.org/ns/xproc" xmlns:xproc="http://xproc.net/xproc" name="pipeline"> <p:xquery> <p:input port="query"> <p:data href="/db/apps/b2b/edit.xq" wrapper="c:query" content-type="plain/text" xproc:escape="false"/> </p:input> </p:xquery> </p:pipeline> I tried changing xproc:escape to true to no discernible effect. <exception> <path>/db/apps/b2b/b2b2.xproc</path> <message> Error while evaluating expression: declare namespace p="http://www.w3.org/ns/xproc"; declare namespace c="http://www.w3.org/ns/xproc-step"; declare namespace err="http://www.w3.org/ns/xproc-error"; declare namespace xsl="http://www.w3.org/1999/XSL/Transform"; declare namespace t="http://xproc.org/ns/testsuite"; import module namespace func = "http://xproc.net/xproc/functions" at "resource:net/xproc/xprocxq/src/xquery/functions.xqm"; ******my Xquery code appears here ****** org.exist.xquery.XPathException: err:XPST0003 in line 10, column 8: unexpected token: version [at line 356, column 16] In function: u:xquery(item()*, item()*, item()*) [157:9:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/util.xqm] opt:xquery(item()*, item()*, item()*, item()*) [33:33:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/opt.xqm] u:call(item()*, item()*, item()*, item()*, item()*) [738:44:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/util.xqm] xproc:evalstep(item()*, item()*, item()*, item()*, item()*) [782:18:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/xproc.xqm] u:call(item()*, item()*, item()*, item()*, item()*, item()*) [1023:23:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/util.xqm] u:step-fold(item()*, item()*, item()*, item()*, item()*, item()*) [1030:9:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/util.xqm] u:step-fold(item()*, item()*, item()*, item()*, item()*, item()*) [779:6:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/util.xqm] xproc:parse_and_eval(item()*, item()*, item()*, item()*) [981:26:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/xproc.xqm] xproc:run(item()*, item()*, item()*, item()*, item()*, item()*) [28:1:jar:file:/home/ihe/eXist/lib/extensions/xprocxq.jar!/net/xproc/xprocxq/src/xquery/xproc.xqm] </message> </exception> |