Page 1 of 1

Outputting two different files from one XSL file

Posted: Fri Sep 09, 2005 7:02 pm
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

Posted: Fri Sep 09, 2005 11:53 pm
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

Posted: Mon Sep 12, 2005 1:50 am
by croniccoder
Very informative.

Thank you George.