XProc and XQuery
Posted: Tue Aug 23, 2016 8:13 pm
I try to run xquery from xproc.
But with the files below I get the error "Content is not allowed in prolog" in the file hello.xquery.
It seems like a wrong saxon version is used (which can't handle xquery)
What to do?
But with the files below I get the error "Content is not allowed in prolog" in the file hello.xquery.
It seems like a wrong saxon version is used (which can't handle xquery)
What to do?
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<test>Hello, World!</test>
Code: Select all
/test
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0">
<p:input port="source">
<p:document href="hello.xml"/>
</p:input>
<p:output port="result" sequence="true"/>
<p:xquery>
<p:input port="query">
<p:document href="hello.xquery"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xquery>
</p:declare-step>