This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: <xsl:apply-templates select="not('nodename')"/> ?
- From: "Américo Albuquerque" <aalbuquerque at viseu dot ipiaget dot pt>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 27 Aug 2002 16:25:07 +0100
- Subject: RE: [xsl] <xsl:apply-templates select="not('nodename')"/> ?
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Michael!
your third apply-templates is selecting a boolean value (not(...)). you
need to change your xpath to select nodes
something like:
<xsl:apply-templates select="*[not(name()='apple' or
name()='orange')]"/>
hope that this helps you
-----Original Message-----
From: owner-xsl-list@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of Michael
Rothwell
Sent: Tuesday, August 27, 2002 4:02 PM
To: xsl-list@lists.mulberrytech.com
Subject: [xsl] <xsl:apply-templates select="not('nodename')"/> ?
I would like to preferentially list some children ahead of others. I'm
trying to do it like this:
<xsl:apply-templates select="./apple"/>
<xsl:apply-templates select="./orange"/>
<xsl:apply-templates select="not(apple|orange)"/>
... I want for the third line to process all other children. It's not
working that way though. What's the right syntax to achieve this?
Thanks,
-M
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list