|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: multiple file output from one XML file
On Mon, 16 Jul 2001 roger.day@xxxxxxxxxxxxxxxxxx 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








