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

Re: // expanding to descendant-or-self::node()

Subject: Re: // expanding to descendant-or-self::node()
From: Evan Lenz <evan@xxxxxxxxxxxx>
Date: Thu, 18 Sep 2008 16:50:53 -0700
Re:  // expanding to descendant-or-self::node()
Michael Kay wrote:
I'm not aware of and can't think of any reason why "//" is defined the way it is other than so that //@* will work. Can you think of any?

It's possible that someone thought it would be a really good idea if //p[1] meant "every paragraph that is the first child of its parent"; but I have no evidence for this, and if they did, then with hindsight they were probably wrong.

LOL. Another "really good idea" was to make sure that self::* never selects attributes, and introducing the concept of "principal node type" to ensure that.

Just kidding. I think this was another unfortunate side effect, but not nearly as bad as //p[1], or as David pointed out, the confusion surrounding the != operator.

Evan

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.