RE: [xsl] From generic to specific match

Subject: RE: [xsl] From generic to specific match
From: Jarno.Elovirta@xxxxxxxxx
Date: Tue, 5 Nov 2002 11:52:27 +0200
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


Current Thread