using SAXON in streaming mode
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 82
- Joined: Sat Jan 13, 2007 5:39 pm
- Location: Belgium
using SAXON in streaming mode
Post by PaulHermans »
From the Saxon documentation:
My transformation scenario:
using Saxon-EE 9.2.0.6
- with settings: initial template: main.
Oxygen doesn't allow me to run this transformation scenario without indicating an input file, which I do not need, since it is called from the saxon:stream function.
Of course I can point to a dummy file, ...
Paul
This is part of the stylesheet:The document that is processed in streaming mode must be read using the doc() function (or in XSLT, the document() function). The query or stylesheet may also process other documents (for example a document named on the command line) but this is not necessary. In XSLT it is often useful to activate the stylesheet at a named template using the -it option on the command line, which allows activation without a primary input document.
Code: Select all
<xsl:template match="/" name="main">
<metadata>
<xsl:apply-templates select="saxon:stream(doc('0001_exportM.xml')/Collection/Artefact)"/>
</metadata>
</xsl:template>
using Saxon-EE 9.2.0.6
- with settings: initial template: main.
Oxygen doesn't allow me to run this transformation scenario without indicating an input file, which I do not need, since it is called from the saxon:stream function.
Of course I can point to a dummy file, ...
Paul
Paul
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Re: using SAXON in streaming mode
Hi Paul,
That is indeed a limitation that was not removed when we added support for setting the initial template for Saxon 9. We plan to make the XML field optional and report an error later, when the transformation is executed, in case an XML is required (as in case of XSLT 1.0 or if initial template is not set).
Best Regards,
George
That is indeed a limitation that was not removed when we added support for setting the initial template for Saxon 9. We plan to make the XML field optional and report an error later, when the transformation is executed, in case an XML is required (as in case of XSLT 1.0 or if initial template is not set).
Best Regards,
George
George Cristian Bina
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