|
Subject: Re[2]: [xsl] Selecting all the children accept those with particular attribute values From: viewga <viewga@xxxxxxxxxxxx> Date: Fri, 2 Feb 2001 12:28:39 +0200 |
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 |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Selecting all the childre, David Carlisle | Thread | Re: [xsl] Selecting all the childre, David Carlisle |
| [xsl] Can I use XSL to output multi, Yusuf Goolamabbas | Date | RE: [xsl] Can sets have order?, Wolfgang May |
| Month |