xsl-list
[Top] [All Lists]

RE: is this valid <xsl:template match="@id"> ?

2002-12-31 02:43:16
I would like to create a template that matches attribute id 
in all elements

<xsl:template match="@id">

this is not working with MSXML... is it correct to use such syntax ?


You can write a template rule like this, but it will only be fired if
you actually apply templates to attribute nodes using something like:

<xsl:apply-templates select="@*"/>

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


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