OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] XPath terminology

[ Lists Home | Date Index | Thread Index ]

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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS