This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: logical operators?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] logical operators?
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Thu, 1 Feb 2001 13:06:29 +0100 (MET)
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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