This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Selecting all the children accept those with particular attributevalues
- To: xsl list <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] Selecting all the children accept those with particular attributevalues
- From: Jo Bourne <venus at va dot com dot au>
- Date: Fri, 02 Feb 2001 14:41:16 +1100
- CC: Jesse Reynolds <jesse at va dot com dot au>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Hi,
In one of the templates in my stylesheet I need to match all the children of
the current node except those with @att equal to value1 or value2. I have
tried this so many different ways and I just can't seem to get it right....
Can I even do this in a single select or do I need to call a pre-prepared
set?
My current failed attempt looks like this:
<xsl:template match="parent">
[......]
<xsl:for-each select="child::*/[@att != 'value1' | @fy !=
'value2']">
[......]
</xsl:template>
I started off more like this:
<xsl:template match="parent">
[......]
<xsl:for-each select="child::*[@att!=('value1'|'value2')]">
[......]
</xsl:template>
Thanks heaps
Jo
--
Jo Bourne
Virtual Artists Pty Ltd
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list