Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > XSL Multiple copies of the original file with minor changes

Reply
Thread Tools

XSL Multiple copies of the original file with minor changes

 
 
EastvanAxon EastvanAxon is offline
Junior Member
Join Date: Mar 2012
Posts: 1
 
      03-14-2012
Hi everybody,

I'm new to XSL and I need some help. My goal is to generate multiple .xml files which differs only by the content of one tag. Here an example:

The original .xml file has the form:

<root>
<a>
[...]
</a>
<b>
[...]
</b>
<c>
[...]
</c>
<d>
<t1>
</t1>
<t2>
</t2>
<t3>
</t3>
</d>
</root>

and I would like to generate 3 different files:

<root>
<a>
[...]
</a>
<b>
[...]
</b>
<c>
[...]
</c>
<d>
<NEW>
</NEW>
<t2>
</t2>
<t3>
</t3>
</d>
</root>

<root>
<a>
[...]
</a>
<b>
[...]
</b>
<c>
[...]
</c>
<d>
<t1>
</t1>
<NEW>
</NEW>
<t3>
</t3>
</d>
</root>

<root>
<a>
[...]
</a>
<b>
[...]
</b>
<c>
[...]
</c>
<d>
<t1>
</t1>
<t2>
</t2>
<NEW>
</NEW>
</d>
</root>


have you got any ideas (I'm using xsl 2.0)?

Best,
Axon
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make copies of array that do not impact on the original? Jen Ruby 3 03-04-2011 09:35 AM
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
XP File Delete creates multiple copies Jim Computer Support 3 06-04-2004 06:47 AM
XSL: Parametrized copies of a common block Ilpo =?iso-8859-1?Q?Nyyss=F6nen?= XML 1 05-24-2004 06:36 PM
minor changes to division demo Richard HTML 22 11-04-2003 06:17 PM



Advertisments