[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] What do match=@*[....] and match=*[....] mean?


Subject: RE: [xsl] What do match=@*[....] and match=*[....] mean?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 23 Dec 2009 13:44:15 -0000

> I see occasionally templates with a matching criteria similar to
> 
> <xsl:template match="@*[.....]"/>
> 
> and
> 
> <xsl:template match="*[.....]"/>
> 
> What is the meaning of them?

The first matches any attribute that satisfies the predicate within the
square brackets. The second matches any element that satisfies the predicate
> 
> Can they be used WITHOUT the appended brackets [...]?
> 

Yes, @* matches any attribute, and * matches any element.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


Current Thread