Additional XSLT stylesheets - how does it work
Here should go questions about transforming XML with XSLT and FOP.
Additional XSLT stylesheets - how does it work
I'm using Oxygen 22.1 to run the standard Docbook to DITA transform, and I noticed that it runs two XSLTs. The second XSLT is specified by the "Additional XSLT stylesheets" and this all seems to work. But I have a couple questions.
1. Does "Additional XSLT stylesheets" require that each XSLT use only standard XSLT output? What if the XLST creates new files using <xsl:result-document>?
2. Does it run them in the order you specify?
3. Can I configure it to do something with a file created by <xsl:result-document>? Like maybe with a parameter to a subsequent XSLT?
4. What would a command line equivalent of this be? I assume it uses some Java feature.
A couple old forum posts talk about it, but I still have questions. The docs page for this does not give many details:
https://www.oxygenxml.com/doc/versions/ ... hing2.html
Thanks,
Mark
1. Does "Additional XSLT stylesheets" require that each XSLT use only standard XSLT output? What if the XLST creates new files using <xsl:result-document>?
2. Does it run them in the order you specify?
3. Can I configure it to do something with a file created by <xsl:result-document>? Like maybe with a parameter to a subsequent XSLT?
4. What would a command line equivalent of this be? I assume it uses some Java feature.
A couple old forum posts talk about it, but I still have questions. The docs page for this does not give many details:
https://www.oxygenxml.com/doc/versions/ ... hing2.html
Thanks,
Mark
Re: Additional XSLT stylesheets - how does it work
Hi Mark,
Please see some answers below:
Or you can try to use an XProc script, again Oxygen allows you to edit and transform XProc using the bundled Calabash engine.
Regards,
Radu
Please see some answers below:
Yes, it only works with standard XSLT output1. Does "Additional XSLT stylesheets" require that each XSLT use only standard XSLT output? What if the XLST creates new files using <xsl:result-document>?
Yes it does.2. Does it run them in the order you specify?
No. For this you might need to use an ANT build file which can be configured to apply XSLT in a more flexible manner. You can create ANT build files in Oxygen and also run them from inside Oxygen. An ANT build file as an <xslt> task which can be used to run XSLT transformations: https://ant.apache.org/manual/Tasks/style.html3. Can I configure it to do something with a file created by <xsl:result-document>? Like maybe with a parameter to a subsequent XSLT?
Or you can try to use an XProc script, again Oxygen allows you to edit and transform XProc using the bundled Calabash engine.
We just apply in sequence XSLT stylesheets over the result of the previous XSLT. You can do the same from the command line by invoking the command line multiple times on the output obtained from a previous command line.4. What would a command line equivalent of this be? I assume it uses some Java feature.
Regards,
Radu
Radu Coravu
<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