Re: [xsl] logical operators?

Subject: Re: [xsl] logical operators?
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 1 Feb 2001 13:06:29 +0100 (MET)
> 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@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread