XSL: output to several files
I would like to use XSL to split up a xml file into several xml files. How
can I do this. The example source file can be thought of as
Re: output to several files
Create an XSLT stylesheet that has one or more parameters that control the
content for the separate documents. The stylesheet retrieves the specified
elements from the input document and returns a new document containing just
the specified information. You would transform the original input document
repeatedly, changing the parameters and saving the results for each
Another way is to process the document with a programming language, using
the DOM to extract the items you want to place in separate files, either
creating a new DOMDocument object and saving that for each file, or just
creating a string and saving that.
Finally, you could simply process the original document as a text string,
breaking it up however you please.
"Jesper Tejlgaard" <firstname.lastname@example.org> wrote in message
> I would like to use XSL to split up a xml file into several xml files. How
> can I do this. The example source file can be thought of as
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL