You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with Calabash 1.1.30-99 against any input source it gives the following error:
ERROR: file:/C:/SomePath/test-document-uri3.xpl:1:0:XPST0003:Unexpected token "{" at start of expression
ERROR: Unexpected token "{" at start of expression
ERROR: cause: file:/C:/SomePath/test-document-uri3.xpl:1:0:XPST0003:Unexpected token "{" at start of expression
ERROR: Pipeline failed: Unexpected token "{" at start of expression
ERROR: Underlying exception: Unexpected token "{" at start of expression
MorganaXProc 1.0.15 runs that code fine.
The text was updated successfully, but these errors were encountered:
and this is what MorganaXProc executes, i.e. a literal result element named result with an embedded expression {document-uri(.)}, then returning e.g.
<result>file:///C:/SomePath/input.xml</result>
It seems I struggle to understand to understand how to embed XQuery code literally in the c:query element, although judging by the difference in the implementations it seems there is a different way the implementors handle that.
If I take the curly braces out I get <result>document-uri(.)</result> from MorganaXProc and test-document-uri4.xpl:8:15:p:xquery returned atomic value from Calabash.
I will need to have a closer look at the XProc 1 spec and p:xquery and c:query details in there.
OK, I think I overlooked "text" in "the text descendants" of the c:query description. So I need to wrap my XQuery code in a CDATA section <c:query><![CDATA[<result>{document-uri(.)}</result>]]></c:query>.
My bad, seems if there is an issue then with MorganaXProc.
When I run the code
with Calabash 1.1.30-99 against any input source it gives the following error:
MorganaXProc 1.0.15 runs that code fine.
The text was updated successfully, but these errors were encountered: