[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Producing multiple result files
James Tauber wrote: > Is it envisaged (or even possible now) to have a stylesheet that produces > multiple result files? > > This would be immensely useful if one wanted to publish a single XML > document as multiple web pages. > > Of course, XSL can produce a single file using FOs that has multiple pages, > but, for arbitrary result vocabularies, you'd want to be able to produce > multiple result files. > > Any ideas? The implementation a group of people I consult with currently use involves caching the stylesheet in-memory and sometimes caching the source tree as well. Since the stylesheets are for the most part static, you simply run the XSL Processor several different times using the same source tree, but using different stylesheets (since the object representation of the stylesheet which may be a DOM tree is stored in memory, you do not need to waste time reparsing it). You could of course have an XSL Processor which could handle multiple source trees and multiple stylesheets which would result in the total number of result trees being the number of course trees times the number of stylesheets. Of course you can do this in a few lines of code without doing this in the XSL Processor itself, so really it is trivial how you do this either way. Is this what you are talking about or else am I confused with what you mean by producing "multiple result files"? Tyler 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
|