RE: [xml-dev] XPath terminology

From
Michael Kay <>
To
'Tim Bray' <>, 'Philippe Poulard' <>
Date
2004-03-03T21:58:15
ID
<20040303215818.EKIC22458.mta03-svc.ntlworld.com@Turtle>
Thread
RE: [xml-dev] XPath terminology
# >
# > examples :
# > /foo/bar[2]/oof[5]/@rab
# > /foo/bar[2]/oof[5]/text()[2]
# >
# > is there a name or should i invent one ?
# 
# I'm pretty sure that this is what Ted Nelson called a "Tumbler" in the
# Xanadu terminology. -Tim

It is not, of course, the simplest XPath expression to reach a given node.
There are shorter expressions such as

/*[1]/*[3]/*[4]

Or

(//*)[87]

Both the above also have the great advantage that they have no dependency on
namespace prefixes.

Michael Kay