xsl-list
[Top] [All Lists]

Re: CATCH ALL | template rule (2nd try)

2005-05-17 13:49:38
<xsl:apply-templates
select="fx:node-set($interval)//fn:interval[//field[(_at_)fieldname='EntityID']=$FTEInterval_Members][//field[(_at_)fieldname='EntityID']=$FTEInterval_JTED_Mains]"
mode="Exceptions" />

What is the inverse of this?  Which would suffice to be my "CATCH
ALL", in otherwords match everything else where the above combination
fails.


fx:node-set($interval)//node()[not(count(. | yourExpression) =
count(yourExpression))]

generally, if there are two node-sets: $ns1 and $ns2, their set difference 
    $ns2 - $ns1 
is expressed by this XPath expression:

    $ns2[not(count(. | $ns1) = count($ns1) ) ]


Cheers,
Dimitre

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--