-
XSL: output to several files
Hi
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
<root>
<elem>.......</elem>
-
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
iteration.
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.
Russell Jones
Executive Editor,
DevX.com
"Jesper Tejlgaard" <tejl@it-c.dk> wrote in message
news:3cce802e$1@10.1.10.29...
>
> Hi
>
> 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
>
> <root>
> <elem>.......</elem>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
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
|
Bookmarks