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=" version="1.0">
<xsl
utput method="xml" omit-xml-declaration="yes"/>
…
…
<xsl:element name="Part-MaterialDefiningDocument">
<xsl:attribute name="xsi:nil">
<xsl:value-of select="'true'"/>
</xsl:attribute>
</xsl:element>
…
…
</xsl:stylesheet>
Here is the output,
<Part-MaterialDefiningDocument xmlns:xsi=" xsi:nil="true"/>
I want to the output to be in this way,
<Part-MaterialDefiningDocument xsi:nil="true"/>
How can I get rid of xmlns:xsi=" from my output
Thanks in advance for any hint and suggestion!
LX
Here is my code in a xslt file,
<xsl:stylesheet xmlns:xsl= xmlns:xsi=" version="1.0">
<xsl
…
…
<xsl:element name="Part-MaterialDefiningDocument">
<xsl:attribute name="xsi:nil">
<xsl:value-of select="'true'"/>
</xsl:attribute>
</xsl:element>
…
…
</xsl:stylesheet>
Here is the output,
<Part-MaterialDefiningDocument xmlns:xsi=" xsi:nil="true"/>
I want to the output to be in this way,
<Part-MaterialDefiningDocument xsi:nil="true"/>
How can I get rid of xmlns:xsi=" from my output
Thanks in advance for any hint and suggestion!
LX