[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: except (was: Keys with duplicates should be simple

Subject: Re: except (was: Keys with duplicates should be simple)
From: Graydon <graydon@xxxxxxxxx>
Date: Sun, 2 Feb 2014 22:28:52 -0500
Re:  except (was: Keys with duplicates should be simple
On Sun, Feb 02, 2014 at 10:48:35PM +0000, Michael Kay scripsit:
> You've somehow got it into your head that the context for evaluation
> of the rh operand depends on the lh operand. Like I said, you're
> thinking of it as a predicate. That's not the case.

I think what's messing me up here is that (so far as I understand it)
the default case with a path expression 

/something/foo except bar

is two sequences-used-to-simulate-node-sets -- (A,B), (B,A), and
(A,B,B,A) are treated as identical, and they're not identical sequences
--and both foo and bar are relative to the current context node in the
path case.

So if it's div/* except heading

that comes out to

(div/child::*) except (div/child::heading)

and that doesn't register as lh and rh operands being independent.

The good thing about being publicly confused is one subsequently
remembers, so hopefully the lh and rh independence will stick.

> > descendant::* except self::heading
> 
> must be wrong, because the descendant axis never includes a node
> that's on the self axis: this is like saying "all my descendants
> except myself".

Which makes no sense, yes.

More confused than I thought; thank you.

-- Graydon

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.