XProc Source Variable
Posted: Tue May 05, 2020 8:51 am
Hello,
I'm fairly new to XProc, but I am running a XProc where I am running multiple stylesheet passes. As seen below:
I'm attempting to use an environmental variable in Oxygen for the source.
Receiving the error below:
How do I pass the source as an editor ask variable.
Thanks,
Ali
I'm fairly new to XProc, but I am running a XProc where I am running multiple stylesheet passes. As seen below:
Code: Select all
<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:input port="parameters" kind="parameter"/>
<p:output port="result"/>
<p:xslt name="firstPass">
<p:input port="stylesheet">
<p:document href="FirstPass.xsl"/>
</p:input>
</p:xslt>
<p:xslt>
<p:input port="stylesheet">
<p:document href="SecondPass.xsl"/>
</p:input>
</p:xslt>
<p:xslt>
<p:input port="stylesheet">
<p:document href="ThirdPass.xsl"/>
</p:input>
</p:xslt>
</p:declare-step>
Code: Select all
err:XD0011 : XProc error err:XD0011 It is a dynamic error if the resource referenced by a p:document element does not exist, cannot be accessed, or is not a well-formed XML document. C:\Users\Ali\ExceltoXML\${ask('message', url)} (The system cannot find the file specified)
Thanks,
Ali