This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
AW: namespace-alias for remapping nodes from the empty namespace
- To: <xsl-list at mulberrytech dot com>
- Subject: AW: namespace-alias for remapping nodes from the empty namespace
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- Date: Fri, 13 Oct 2000 17:33:23 +0200
- Reply-To: xsl-list at mulberrytech dot com
> Von: owner-xsl-list@mulberrytech.com
> [mailto:owner-xsl-list@mulberrytech.com]Im Auftrag von Kay Michael
> Gesendet: Freitag, 13. Oktober 2000 15:43
> An: 'xsl-list@mulberrytech.com'
> Betreff: RE: namespace-alias for remapping nodes from the empty
> namespace
>
>
> > I have an XML element with no namespace declaration, say:
> >
> > <foo />
> >
> > Can I use the xsl:namespace-alias mechanism to map elements
> > from this empty namespace to another one in the output?
> >
> > #default seems to map the *default* namespace, which is
> > different from the empty namespace...
>
> The namespace URI for <foo> *is* the default namespace. If there are no
> namespace declarations in force, the default namespace is empty,
> if there is
> a namespace declaration xmlns="abc.uri" then the default namespace is
> "abc.uri".
>
> So yes, you can use #default.
I see.
However, it does not work when the node is produced using <xsl:copy-of />.
Something I should have learned by now :-)
Thanks for the help,
Julian
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list