Outputting two different files from one XSL file

Here should go questions about transforming XML with XSLT and FOP.
croniccoder
Posts: 2

Outputting two different files from one XSL file

Fri Sep 09, 2005 7:02 pm

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: 2100

Fri Sep 09, 2005 11:53 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
croniccoder
Posts: 2

Mon Sep 12, 2005 1:50 am

Very informative.

Thank you George.

Return to “XSLT and FOP”

Who is online

Users browsing this forum: No registered users and 1 guest