Subject: Re: [xsl] Unwanted default namespace copied to output in XSLT v1.0 From: Ian STOKES-REES <ijstokes@xxxxxxxxxxxx> Date: Fri, 30 Nov 2007 08:55:43 -0500 |
Any suggestions how to avoid this problem?
in xslt 1 xsl:copy always copie in scope namespaces so if you don't want that, don't use xsl:copy, instead use
<xsl:element name="{name()}" namespace="{namespace-uri()}">
which generates a new element with same name as the old one, but without copying namespace nodes.
-- Ian Stokes-Rees, Consultant SP Metric Technology Consulting ijstokes@xxxxxxxxxxxx http://www.spmetric.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Unwanted default namespac, Michael Kay | Thread | [xsl] Problem accessing nodes from , Aitor San Juan |
Re: [xsl] Problem while displaying , G. Ken Holman | Date | [xsl] Getting and using an xml attr, Aaron Johnson |
Month |