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

Subject: Re: [xsl] What do match=@*[....] and match=*[....] mean?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 23 Dec 2009 14:45:40 +0100
Ben Stover wrote:
I see occasionally templates with a matching criteria similar to

<xsl:template match="@*[.....]"/>

and

<xsl:template match="*[.....]"/>

What is the meaning of them?

@* is attribute::* so matches all attributes, * is child::* so matches all elements. The predicate in square brackets then applies a filter.


Can they be used WITHOUT the appended brackets [...]?

Sure.


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

Current Thread