- From: Maarten Marx <marx@science.uva.nl>
- Date: Thu, 27 Nov 2003 17:09:04 +0100
- To: David Carlisle <davidc@nag.co.uk>
- Cc: marx@science.uva.nl, public-qt-comments@w3.org
I'm not sure if i grasp the meaning of the xpath 2.0 expression below, but wouldn't this work then (which is virtually the first order formula expressing "betweenness") for $here in . return $here//*[@l='no' and (every $a in ancestor::* satisfies (self::*[@l='yes'] or not descendant-or-self/$here::*))] cheers & thanks! maarten On Thu, Nov 27, 2003 at 02:01:20PM +0000, David Carlisle wrote: > > > something like > > .//* > [@l='no' and not(ancestor::*[ > count(.|current()/descendant::*)= > count(current()/descendant::*)]/@l='no')] > > would restrict the ancestors to be descendants of the current node but > that requires the xslt current() function (and if you're using xslt you > could write the whole thing much more simply using xslt conditionals. > > > in pure xpath2 I suppose it's something like > > for $here in . > return > $here//*[@l='no' and (every $a in ancestor::*[@l='yes'] satisfies > (some $d in $here/descendant-or-self::* satisfies $d is $a ))] > > > for each descendent with @l=no check that all its ancestors with l=yes > are descendents of the current node. > > > -- > http://www.dcarlisle.demon.co.uk/matthew > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by Star Internet. The > service is powered by MessageLabs. For more information on a proactive > anti-virus service working around the clock, around the globe, visit: > http://www.star.net.uk > ________________________________________________________________________ -- *************************************************************************** Maarten Marx marx@science.uva.nl http://www.science.uva.nl/~marx Language and Inference Technology Group, ILLC, Universiteit van Amsterdam Nieuwe Achtergracht 166, 1018 WV Amsterdam, The Netherlands. Phone: +31 20 525 2888 Mobile: 06 400 16 120 Fax: +31 20 525 2800 *************************************************************************** Brothers and sisters, I wanna see a sea of hands out there. Let me see a sea of hands. I want everybody to kick up some noise. I wanna hear some revolution out there, brothers. I wanna hear a little revolution. Brothers and sisters, the time has come for each and every one of you to decide whether you are gonna be the problem, or whether you are gonna be the solution. You must choose, brothers, you must choose. It takes 5 seconds, 5 seconds of decision. Five seconds to realize your purpose here on the planet. It takes 5 seconds to realize that it's time to move. It's time to get down with it. Brothers, it's time to testify and I want to know, Are you ready to testify? Are you ready? I give you a testimonial, the MC5! ----Brother J.C. Crawford
Received on Thursday, 27 November 2003 11:09:08 UTC