W3C home > Mailing lists > Public > www-xpath-comments@w3.org > January to March 2004

Confusion on XPath Grammar concerning attribute axis

From: Kirmse, Daniel <daniel.kirmse@sap.com>
Date: Thu, 15 Jan 2004 17:27:15 +0100
Message-ID: <22772E6015DA354B84C6F8DB8BF60504D0ECBE@dewdfx13.wdf.sap.corp>
To: "'www-xpath-comments@w3.org'" <www-xpath-comments@w3.org>
Hi,

I wonder what this expression means:

(1) /foo/@attr/bar

or what this one here means:

(2) /foo/@text()

ad (1):
This expression seems to be perfectly within the range of the grammar, but I cannot understand what it means. Well /foo/@attr takes me to the attribute "attr" of node "foo". But what does /bar do on this context?

ad(2):
Well this looks like a text() test on the attribute axis of foo. But what is the meaning of that?



Thanks for any answers and hints!
Cheers,
Daniel
Received on Thursday, 15 January 2004 11:38:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:05:55 GMT