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

Re: XSL Abbreviations

Subject: Re: XSL Abbreviations
From: "Ben Pickering" <benjaminpickering@xxxxxxxxxxx>
Date: Mon, 03 Jul 2000 13:22:08 GMT
ben pickering
Just reading the XPath docs wrong, that's all. // is equivalent to
/descendant-or-self::node()/ - note the leading and trailing slashes. You
could try ..//.[generate-id(.) = $node]

I tried you suggestion, but it doesn't seem to work, at least in XT.


Plus, can you explain the siginificance of the slashes, for curiosity's sake: I get that the leading '/' selects the document root (which is why you need to say './/' rather than just '//' for the context node's parent; the '//' includes a built-in '/' in front of descendant-or-self.)

But I don't see the significance of the trailing slash. Surely this just acts to select all the children of nodes matching descendant-or-self, thus providing the same effect as descendant?

Why is this behaviour appropriate to '//'? Can I just take this as meaning 'descendant', (but selecting all descendant nodes and NOT self at all)?

Regards,
Ben.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


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



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.