Subject: Re: [xsl] Namespaces. From: Kamal Bhatt <kbhatt@xxxxxxxxx> Date: Fri, 31 Mar 2006 11:57:12 +1100 |
<xsl:template match="node()"> <xsl:element name="local-name()"> <xsl:apply-templates select="@*"/> <xsl:if test="count(*) = 0"> <xsl:value-of select="."/> </xsl:if> <xsl:apply-templates name="child::*"/> </xsl:element> </xsl:template>
<xsl:template match="@*"> <xsl:attribute name="{name()}"> <xsl:value-of select="."/> </xsl:attribute> </xsl:template>
-- Disclaimer: This email is confidential and may contain privileged information for the sole use of the person or business to which it is addressed. If you are not the intended recipient, please notify the sender by return e-mail or phone as you must not view, disseminate, distribute or copy this email without our consent. We do not accept any liability in connection with any computer virus, data corruption, incompleteness, or unauthorised amendment of this email. It is the sole responsibility of the receiver to scan for viruses before opening.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Namespaces., Michael Kay | Thread | RE: [xsl] Namespaces., Michael Kay |
Re: [xsl] XSL template "namespace" , Wendell Piez | Date | [xsl] Preserve-space isn't, Trevor Nicholls |
Month |