Subject: RE: problem - generating XML schema via XSLT
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 3 Oct 2003 21:23:01 +0100
|
> > <xsl:variable name="dummy">
> > <xsl:element name="e" namespace="{@prefix}"/> </xsl:variable>
> >
> > <xsl:copy select="xx:node-set($dummy)/*/namespace::*[.=@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
|