[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|