[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: // expanding to descendant-or-self::node()
Evan Lenz wrote:
Evan Lenz wrote:Aargh. I should just give up. :-) Against my better judgment, here's one last try at communicating what I meant to say:Andrew Welch wrote:Oops, quick correction. When starting at the document node, there wouldn't be any attributes. So what I meant to say was that .//descendant::*/@* is not the same as .//@*.Not quite. If // was short for /descendant::, then //*/@foo would still not be equivalent. That's because, in XPath as actually designed, /descendant::*/@foo isn't the same as //@*. The former excepts attributes of the context node, whereas //@* also includes attributes of the context node.currently // expands to /descendant-or-self::node()/ which is not owhat ./descendant::*/@* is not the same thing as .//@* *blush* Evan
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|