Re: [xsl] multiple file output from one XML file

Subject: Re: [xsl] multiple file output from one XML file
From: Laurence O Garfield <lgarfiel@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 16 Jul 2001 09:34:48 -0500 (CDT)
On Mon, 16 Jul 2001 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

--Larry Garfield

 XSL-List info and archive:

Current Thread