Subject: [xsl] Rename elemet From: "Shailesh Shinde" <shailesh@xxxxxxxxxxxx> Date: Fri, 4 Nov 2005 18:39:04 +0530 |
Hi, my input xml as: <sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Test1.xsd"> <sample1> <p>ABCDEFGHIJKLMNOP<p> <script lang="enu"/> <script lang="enu1"/> </sample1> </sample> Output should be: <test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Test1.xsd"> <sample1> <p>ABCDEFGHIJKLMNOP<p> <scriptin lang="enu"/> <scriptin lang="enu1"/> </sample1> <test> How do i change script to scriptin element. Thanks, Shailesh -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Friday, November 04, 2005 5:18 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Root element attributes which bit did are you having problems with? a stylesheet with the single template <xsl:template match="Sample"> <test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Test1.xsd"/> </xsl:template> appears to produce the result you want. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Root element attributes, David Carlisle | Thread | [xsl] Rename element, shailesh |
Re: [xsl] Root element attributes, David Carlisle | Date | [xsl] Rename element, shailesh |
Month |