I believe he wants to process any atom document which could have any
namespaces. But instead of having the namespace declared at
the element
level, he wants the namespaces declared on the root element.
I don't think it is possible without declaring the namespace
in the XSL
stylesheet root element, right?
You can achieve this with
<xsl:template match="/*">
<xsl:copy> (or <lre>)
<xsl:copy-of select="//namespace::*"/>
However, this will also copy namespaces that aren't used in the result
document. If you want to eliminate unused namespaces AND promote retained
namespaces to the outermost element, then a two-phase transformation is
probably the cleanest way.
Michael Kay
http://www.saxonica.com/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--