XProc error err:XC0050 access denied
Posted: Tue Feb 25, 2020 1:17 pm
Using oXygen 22 and the built-in Calabash XProc processor to run an XProc example that tries to use p:store I get
The XProc code is
the XML input to the p:xslt step is
The p:store href="toc-list.html" seems to be executed fine even from inside oXygen but I guess the error is caused by the p:store steps inside of the p:for-each, only that it works fine when run from the command line. Any idea where Calabash inside oXygen tries to write the secondary result files of the p:xslt step I am trying to store with the p:store inside of the p:for-each?
When I run Calabash from the command line with the same files I don't get that error.err:XC0050 : XProc error err:XC0050 It is a dynamic error if the URI scheme is not supported or the step cannot store to the specified location. Zugriff verweigert
The XProc code is
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc" xpath-version="2.0"
xmlns:c="http://www.w3.org/ns/xproc-step" version="1.0">
<p:input port="source">
<p:empty/>
</p:input>
<p:output port="result" primary="true" sequence="true">
<p:pipe port="result" step="secondary-storage"/>
</p:output>
<p:xslt name="xslt-pagelist" version="2.0">
<p:input port="stylesheet">
<p:document href="page-list.xsl"/>
</p:input>
<p:input port="source">
<p:document href="toc.xml"/>
</p:input>
<p:input port="parameters">
<p:empty/>
</p:input>
</p:xslt>
<p:store href="toc-list.html"/>
<p:for-each name="secondary-storage">
<p:iteration-source select=".">
<p:pipe port="secondary" step="xslt-pagelist"/>
</p:iteration-source>
<p:output port="result">
<p:pipe port="result" step="store"/>
</p:output>
<p:store name="store">
<p:with-option name="href" select="document-uri(.)"/>
</p:store>
</p:for-each>
</p:declare-step>
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<book>
<chapter>
<section>
<title>section 1</title>
</section>
<section>
<title>section 2</title>
</section>
<section>
<title>section 3</title>
</section>
</chapter>
<chapter>
<section>
<title>section 1</title>
</section>
<section>
<title>section 2</title>
</section>
<section>
<title>section 3</title>
</section>
</chapter>
<chapter>
<section>
<title>section 1</title>
</section>
<section>
<title>section 2</title>
</section>
<section>
<title>section 3</title>
</section>
</chapter>
</book>