[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Rename elemet
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: 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 ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|