xsl-list
[Top] [All Lists]

Re: [xsl] Getting the root namespace from the input document

2007-02-05 06:27:56
On 2/5/07, San <san_sar(_at_)yahoo(_dot_)com> wrote:
Hi Andrew,
thanks for your reply.
The problem is I don't know the namespace before. So
must take the namespace from input document. That what
I need and then put those namespace into the output
root document.

In which case:

<xsl:template match="/">
        <Metadata>
                <xsl:copy-of select="namespace::node()"/>
        </Metadata>
</xsl:template>

--~------------------------------------------------------------------
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>
--~--