Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

namespace

Status
Not open for further replies.

chrislx

Programmer
Joined
Oct 17, 2003
Messages
32
Location
US
I work on writing a xml file by using xslt. I have the following question:

Here is my code in a xslt file,
<xsl:stylesheet xmlns:xsl= xmlns:xsi=&quot; version=&quot;1.0&quot;>
<xsl:output method=&quot;xml&quot; omit-xml-declaration=&quot;yes&quot;/>



<xsl:element name=&quot;Part-MaterialDefiningDocument&quot;>
<xsl:attribute name=&quot;xsi:nil&quot;>
<xsl:value-of select=&quot;'true'&quot;/>
</xsl:attribute>
</xsl:element>



</xsl:stylesheet>

Here is the output,
<Part-MaterialDefiningDocument xmlns:xsi=&quot; xsi:nil=&quot;true&quot;/>

I want to the output to be in this way,
<Part-MaterialDefiningDocument xsi:nil=&quot;true&quot;/>

How can I get rid of xmlns:xsi=&quot; from my output

Thanks in advance for any hint and suggestion!

LX
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top