XProc Source Variable
Here should go questions about transforming XML with XSLT and FOP.
XProc Source Variable
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>
- image.png (45.96 KiB) Viewed 2699 times
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
Re: XProc Source Variable
Hello Ali,
Thanks for your feedback.
Unfortunately we do not have support to provide the source as an ask editor variable. Only the transformation parameters can be passed as an ask editor variable.
I added an issue on our issue tracker to add this support in a future version. We will update this thread when the issue will be solved.
Best Regards,
Octavian
Thanks for your feedback.
Unfortunately we do not have support to provide the source as an ask editor variable. Only the transformation parameters can be passed as an ask editor variable.
I added an issue on our issue tracker to add this support in a future version. We will update this thread when the issue will be solved.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: XProc Source Variable
Hello Ali,
I am not an XProc expert. Probably you can do this if you can pass the source as a parameter, and use the ${ask} editor variable in the parameter.
Best Regards,
Octavian
I am not an XProc expert. Probably you can do this if you can pass the source as a parameter, and use the ${ask} editor variable in the parameter.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: XProc Source Variable
Thanks Octavian, I'm new to XProc as well. I guess I'm not sure how to do that myself.
I can add the parameter on the parameter tab and the ask msg will show up as expected when I run the XProc
However, I'm not sure how to then utilize that parameter in the XProc for the main <p:input port="source"/>?
I get the error:
Here is the latest XProc I have:
If anyone knows how I can make that link between the passed parameter and the primary input source?
Thanks,
Ahmed
I can add the parameter on the parameter tab and the ask msg will show up as expected when I run the XProc
- image.png (93.55 KiB) Viewed 2647 times
I get the error:
Code: Select all
Either a source document, an initial template or an initial function must be specified
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="parameters" kind="parameter"/>
<p:input port="source">
<p:document href="{$source}"/>
</p:input>
<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>
Thanks,
Ahmed
Re: XProc Source Variable
Hi Ahmed,
We are not very familiar with the XProc standard as we do not use it much internally. Maybe you can ask XProc specific questions on the XProc users list:
https://lists.w3.org/Archives/Public/xproc-dev/
Regards,
Radu
We are not very familiar with the XProc standard as we do not use it much internally. Maybe you can ask XProc specific questions on the XProc users list:
https://lists.w3.org/Archives/Public/xproc-dev/
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Re: XProc Source Variable
Hi,
Just wanted to update this thread and let you know that the recently released Oxygen 23 should have a fix for the issue you reported here.
Kind regards,
Teo
Just wanted to update this thread and let you know that the recently released Oxygen 23 should have a fix for the issue you reported here.
Kind regards,
Teo
Teodor Timplaru
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service