xsl-list
[Top] [All Lists]

Converting Child to Sibling

2005-06-24 23:46:18
Dear All,

I am converting one XML to another form of XML by using XSLT, in my source XML, 
I have ‘enn’ element, which is the child of ‘para’ element. I require in my 
resulting XML ‘enn’ element should be sibling of ‘para’ then how the XSLT 
should look.

Source XML

<root>
<para>Normal <i>italic</i> text, normal <b>bold</b> text, normal <s>sarif</s> 
text</para>
<para>Normal <i>italic</i> text, <enn>normal <b>bold</b> text</enn>, normal 
<s>sarif</s> text</para>
<para>Normal <i>italic</i> text, normal <b>bold</b> text, normal <s>sarif</s> 
text</para>
</root>

Resulting XML
<root>
<para>Normal <i>italic</i> text, normal <b>bold</b> text, normal <s>sarif</s> 
text</para>
<para>Normal <i>italic</i> text, </para><enn>normal <b>bold</b> 
text</enn><para>, normal <s>sarif</s> text</para>
<para>Normal <i>italic</i> text, normal <b>bold</b> text, normal <s>sarif</s> 
text</para>
</root>

Please advice

Many thanks in advance
Arul Kumar

__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>