Outputting two different files from one XSL file
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 2
- Joined: Fri Sep 09, 2005 6:57 pm
Outputting two different files from one XSL file
Post by croniccoder »
Hi,
Is it possible to output two different files (two xml files, or maybe one xml and one text file) when running a transformation from one XSL file?
An example would be that one file outputs all the content from the transformation, and another file might output just one chunk of content (maybe a specific element) from the original xml file.
I've googled this with no luck yet.
Thanks,
cc
Is it possible to output two different files (two xml files, or maybe one xml and one text file) when running a transformation from one XSL file?
An example would be that one file outputs all the content from the transformation, and another file might output just one chunk of content (maybe a specific element) from the original xml file.
I've googled this with no luck yet.
Thanks,
cc
-
- Site Admin
- Posts: 2095
- Joined: Thu Jan 09, 2003 2:58 pm
Hi,
In XSLT 2.0 you have xsl:result-document. In XSLT 1.0 you need to use a processor specific function, have a look at the DocBook chunker.xsl stylesheet for an utility stylesheet that handles this with Saxon, Xalan and with processors with exsl support. We used that for instance chunker.xsl for the schema documentation stylesheet, see the stylesheets from [oxygen]/frameworks/xs3p folder.
Best Regards,
George
In XSLT 2.0 you have xsl:result-document. In XSLT 1.0 you need to use a processor specific function, have a look at the DocBook chunker.xsl stylesheet for an utility stylesheet that handles this with Saxon, Xalan and with processors with exsl support. We used that for instance chunker.xsl for the schema documentation stylesheet, see the stylesheets from [oxygen]/frameworks/xs3p folder.
Best Regards,
George
-
- Posts: 2
- Joined: Fri Sep 09, 2005 6:57 pm
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