This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: multiple file output from one XML file
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] multiple file output from one XML file
- From: Laurence O Garfield <lgarfiel at students dot depaul dot edu>
- Date: Mon, 16 Jul 2001 09:34:48 -0500 (CDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
On Mon, 16 Jul 2001 roger.day@globalgraphics.com wrote:
> and filter the output into several HTML files - one file for each <poems>
> element.
>
> I've looked through the new Big Red Book but found nothing in XSLT that covers
> this. Will I have to filter the XML with something like Xalan or Java -first-
> before sending the node to be filtered by a style sheet?
>
> Roger
XSLT 1.0 doesn't support multiple-stream output unfortunately, but many
XSLT engines have their own extensions that do. Xalan-J has one set of
extensions, XT has another, I'm pretty sure MSXML would have one as well
although I've not looked into it.
XSLT extensions are a valid concept permitted by the W3C spec, but if you
really don't want to use any engine-specific code then what you can do is
define your overall XML file as a bunch of separate XML files, one for
each <poem>, then include them all as entities in a central poem-book.xml
file. Then have a smart script (or set of scripts) that you run on each
file separately. Use a bash script to make it easier to run the processor
on each pair of files. It's not quite as clean, but it won't be
engine-dependent.
--Larry Garfield
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list