<xsl:variable name="dummy">
<xsl:element name="e" namespace="{(_at_)prefix}"/> </xsl:variable>
<xsl:copy
select="xx:node-set($dummy)/*/namespace::*[(_dot_)=(_at_)prefix]"/>
This creates a dummy element in the required namespace, and then
copies the required namespace node to the result tree.
amazingly, this does not yield any change in the output
document.
Try:
<xsl:copy
select="xx:node-set($dummy)/*/namespace::*[.=current()/@prefix]"/>
My error.
MK
I am
using Xalan (where the function is named nodeset as opposed to
node-set). The new namespace decl does not appear.
thanks,
christian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list