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


# >
# > 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


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