Subject: RE: [xsl] Root element attributes From: "Shailesh Shinde" <shailesh@xxxxxxxxxxxx> Date: Fri, 4 Nov 2005 17:28:34 +0530 |
Hi, my input xml as: <sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Test1.xsd"> <sample1> <p>ABCDEFGHIJKLMNOP<p> </sample1> </sample> Output should be: <test xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="Test1.xsd"> <sample1> <p>ABCDEFGHIJKLMNOP<p> </sample1> <test> 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, Shailesh Shinde | Thread | Re: [xsl] Root element attributes, David Carlisle |
RE: [xsl] Root element attributes, Shailesh Shinde | Date | Re: [xsl] Root element attributes, David Carlisle |
Month |