471,066 Members | 1,588 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

Injecting a copy of a value using a xslt

I am using a xml with the following structure :

<xml ....>
<mainnode>
<node1>value1<node1>
<node2>
<subnode1>val</subnode1>
</node2>
<node3>value3</node3>
<node4>value4</value4>
</mainnode>

This xml i want to transform to

<xml ....>
<mainnode>
<node1>value1<node1>
<node2>
<subnode1>val</subnode1>
</node2>
<node3>value3</node3>
<NEWNODE>value1</NEWNODE>
<node4>value4</value4>
</mainnode>

where a newnode is created after a specific node (node3), and contains
the value of node1.
I am not a XSLT guru so i'm gonna need some help.
TIA

Otto Beragg

Jul 23 '07 #1
0 1498

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Patrik Carlsson | last post: by
5 posts views Thread by Nadav | last post: by
17 posts views Thread by Luke Matuszewski | last post: by
14 posts views Thread by ofiras | last post: by
6 posts views Thread by kluge.wolfram | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.