[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] [XPath 1.0] Why is .[A] illegal but self::node()[A] is legal?


Subject: [xsl] [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
Keywords