This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Selecting all the children accept those with particular attributevalues


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]