xsl-list
[Top] [All Lists]

RE: From generic to specific match

2002-11-05 02:52:27
Hi,

Suppose my xslt stylesheet contains numerous potential match for the 
same nodes :
<xsl:template match="/foo/bar" >...</xsl:template>
and <xsl:template match="/foo/*">...</xsl:template>
Which one will match /foo/bar ?
I suppose that the order does matter.

The former; in this case the order doesn't matter. See the XSLT spec 
<http://www.w3.org/TR/xslt#conflict>.

Cheers,

Jarno

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



<Prev in Thread] Current Thread [Next in Thread>