Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error XPST0003:Unexpected token "{" when using p:xquery step with XQuery inline code with embedded expression #301

Closed
martin-honnen opened this issue Feb 25, 2020 · 0 comments

Comments

@martin-honnen
Copy link

When I run the code

<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step name="test1"
    xmlns:p="http://www.w3.org/ns/xproc"
    xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0"
    xpath-version="2.0">
    <p:input port="source"/>
    <p:output port="result"/>
    <p:xquery>
        <p:input port="query">
            <p:inline>
                <c:query><result>{document-uri(.)}</result></c:query>
            </p:inline>
        </p:input>
        <p:input port="parameters">
            <p:empty/>
        </p:input>
    </p:xquery>
</p:declare-step>

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant