xsl-list
[Top] [All Lists]

Re: Trouble with namespaces and running identity

2004-03-09 20:50:12

           Not sure if these will help? They are from a tutorial I
downloaded, not sure from where.

<!-- Matches attributes with names qualified to a namespace OTHER than
                the namespace of the containing element -->
<xsl:template match="@*[namespace-uri()]">
        <xsl:attribute name="{local-name()}">
                <xsl:value-of select="."/>
        </xsl:attribute>
</xsl:template>

<!-- Matches attributes with the same namespace as the
                containing element -->
<xsl:template match="@*">
        <xsl:attribute name="{name()}">
                <xsl:value-of select="."/>
        </xsl:attribute>
</xsl:template>




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>
  • Re: Trouble with namespaces and running identity, Robert Stukey <=