This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re[2]: Selecting all the children accept those with particular attribute values
- To: David Carlisle <xsl-list at lists dot mulberrytech dot com>
- Subject: Re[2]: [xsl] Selecting all the children accept those with particular attribute values
- From: viewga <viewga at phreaker dot net>
- Date: Fri, 2 Feb 2001 12:28:39 +0200
- Organization: viewga sf
- References: <B6A0778B.60B8%venus@va.com.au><200102020924.JAA12712@penguin.nag.co.uk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
DC> My current failed attempt looks like this:
DC> <xsl:template match="parent">
DC> [......]
DC> <xsl:for-each select="child::*/[@att != 'value1' | @fy !=
DC> 'value2']">
DC> you were nearly there, but or is or not |
DC> [(@att != 'value1') or (@fy != )]
little addition:
if you need
att is not ('value1' or 'value2')
which is
att is not 'value1' _AND_ att is not 'value2'
so it will be
[(@att != 'value1') and (@att != 'value2')]
but if you need
((child have @att which is not 'value1') or (child does not have
@att)) or ((child have @fy which is not 'value2') or (child does not have
@fy))
which is equal to
child have ((@att not 'value1') and (@fy not 'value2')) will be the
same (does not have @ falls to @ is not 'value').
If logic is different - different condition it will have.
--
Best regards,
viewga mailto:viewga@phreaker.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list