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]

Re[2]: Selecting all the children accept those with particular attribute values


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


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