Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries [Thread Prev] >Thread Next - Re: I don't want xmlns="" in the result document I don't want xmlns="" in the result documentTo: NULL Date: 3/3/2006 3:23:00 PM Hi,
I have a problem. I dont'want xmlns="" in my result document. But I need the
default namespace.
HELP!!!
source XML:
<ROOT>
<row>aaa</row>
<row>bbb</row>
</ROOT>
XSL:
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlsns="uri:target:default:ns">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="/">
<xsl:apply-templates select="ROOT"/>
</xsl:template>
<xsl:template match="ROOT">
<TABLE>
<xsl:apply-template select="row"/>
</TABLE>
</xsl/template>
<xsl:template match="node()">
<xsl:copy>
<xsl:apply-templates select="node()"/>
</xsl:copy>
</xsl:template>
</xsl:stypesheet>
Result XML:
<TABLE xmlsns="uri:target:default:ns">
<row xmlns="">
aaa
</row>
<row xmlns="">
bbb
</row>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
