Outputting two different files from one XSL file

Here should go questions about transforming XML with XSLT and FOP.
croniccoder
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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

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
croniccoder
Posts: 2
Joined: Fri Sep 09, 2005 6:57 pm

Post by croniccoder »

Very informative.

Thank you George.
Post Reply