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: logical operators?



> Hmm, am i missing something... 

Probably the XPath spec:
http://www.w3.org/TR/xpath

> how do I select all ancestors that are either
> thread or post elements
> I thought something like  select="ancestor::post $and$ ancestor::thread" but
> obviously I was wrong..

$and$ should be and
But then it is a boolean expression, that's not what you want.
You need the union operator:

select="ancestor::post | ancestor::thread"

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 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]