[Home] [By Thread] [By Date] [Recent Entries]

Subject: [XPath 1.0] Why is .[A] illegal but self::node()[A] is legal?
From: "Costello, Roger L." <costello@xxxxxxxxx>
Date: Sat, 7 Aug 2010 11:17:10 -0400
Hi Folks,

Why is this XPath 1.0 expression illegal:

   .[A]

whereas this XPath 1.0 expression is legal:

   self::node()[A]


Isn't '.' a shorthand for 'self::node()'?  Shouldn't I be able to interchange
the two in any expression?

/Roger

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member