xsl-list
[Top] [All Lists]

RE: [xsl] What do match=(_at_)*[(_dot_)(_dot_)(_dot_)(_dot_)] and match=*[....] mean?

2009-12-23 08:44:36
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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

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