Re: [xsl] template match question

Subject: Re: [xsl] template match question
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 2 Aug 2002 17:00:19 +0100

<xsl:template match="b[//c]"/>

That matches a b if there is a c anywhere in the document.
//c is an absolute path.

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

matches a b that has a c descendent.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Current Thread