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

Subject: Re: [xsl] Getting the root namespace from the input document
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 5 Feb 2007 13:27:35 +0000
On 2/5/07, San <san_sar@xxxxxxxxx> 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>

Current Thread