|
Subject: [xsl] Need to Split/Un-Nest elements From: "Mandar Jagtap" <mandar.jagtap@xxxxxxxxx> Date: Thu, 12 Jun 2008 14:13:39 +0530 |
Hi,
I want to split/un-nest the elements in xml like below:
Input xml:
<region>
<page>
<block>Text1.....</block>
<block>
<inline>Text2.....</inline>
<page>
<block>Text3.....</block>
</page>
<inline>Text4......</inline>
</block>
</page>
<page>
<block>Text5.....</block>
</page>
</region>
Desired Output:
<region>
<page>
<block>Text1.....</block>
<block>
<inline>Text2.....</inline>
</block>
</page>
<page>
<block>Text3.....</block>
</page>
<page>
<block>
<inline>Text4......</inline>
</block>
</page>
<page>
<block>Text5.....</block>
</page>
</region>
Can anyone help me on this?
--
Thanks & Regards,
Mandar
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re[2]: [xsl] Simple Metrics Can't s, Arthur Maloney | Thread | Re: [xsl] Need to Split/Un-Nest ele, Andrew Welch |
| Re[2]: [xsl] Simple Metrics Can't s, Arthur Maloney | Date | [xsl] XSLT 2 - Sorting data with tw, Chris Hughes |
| Month |