[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re[2]: Selecting all the children accept those with pa

Subject: Re[2]: Selecting all the children accept those with particular attribute values
From: viewga <viewga@xxxxxxxxxxxx>
Date: Fri, 2 Feb 2001 12:28:39 +0200
Re[2]:  Selecting all the children accept those with pa
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@xxxxxxxxxxxx




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.