Subject: Re: [xsl] Getting the root namespace from the input document From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx> Date: Mon, 5 Feb 2007 21:14:20 +0530 |
<xsl:template match="/"> <Metadata> <xsl:copy-of select="namespace::node()"/> </Metadata> </xsl:template>
<xsl:template match="/manifest"> <Metadata> <xsl:copy-of select="namespace::*"/> </Metadata> </xsl:template>
<xsl:template match="manifest"> <xsl:variable name="x" select="." /> <Metadata> <!-- create namespace declarations --> <xsl:for-each select="in-scope-prefixes($x)"> <xsl:namespace name="{.}"><xsl:value-of select="namespace-uri-for-prefix(., $x)" /></xsl:namespace> </xsl:for-each>
<!-- do rest of things --> </Metadata> </xsl:template>
-- Regards, Mukul Gandhi
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting the root namespac, Andrew Welch | Thread | Re: [xsl] Getting the root namespac, Andrew Welch |
Re: [xsl] Is there a way of obfusca, Dimitre Novatchev | Date | [xsl] Announce: GNU gettext support, Jirka Kosek |
Month |