This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: <xsl:apply-templates select="not('nodename')"/> ?
- From: David Carlisle <davidc at nag dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 27 Aug 2002 16:40:32 +0100
- Subject: Re: [xsl] <xsl:apply-templates select="not('nodename')"/> ?
- References: <3D6B947D.4030308@holly-springs.nc.us>
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:apply-templates select="./apple"/>
<xsl:apply-templates select="./orange"/>
they are OK but you could remove the ./ as it's not doing anything.
<xsl:apply-templates select="not(apple|orange)"/>
this is the boolean value true or false depending on whether there are
any elements of those names. You don't want to apply templates to a
boolean, but to a node set, so:
<xsl:apply-templates select="*[not(self::apple or self::orange)]"/>
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