xsl-list
[Top] [All Lists]

Element name as attribute value

2005-08-11 05:04:43
Hi All,
 
I have to transform element name say "comments" as attribute value to "<tsta
name="comments">". Can it be possible using XSLT 2.0.
 
Xml contains:
 
<?xml version=1.0?>
<test>
<text:p text:trans_attr="trans">
Sample para. This needs to be translated. 
<comments>This is not translated</comments>
</text:p>
</test>
 
Output xml as:
 
<?xml version=1.0?>
<test>
<text:p text:trans_attr="trans">
Sample para. This needs to be translated. 
<tsta name="comments">This is not translated</tsta>
</text:p>
</test>

 
--
Shailesh


--~------------------------------------------------------------------
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>