RE: Dump XPATHs from schema?

> That'd be a hard ticket to fill, wouldn't it? There's practically an
> unlimited number of XPath statements that could be generated 
> for an XML
> document. Maybe you mean something that could generate the 
> list in a bit
> more narrowly defined manner?

When people ask for generated XPath expressions, they are usually asking for
some kind of canonical path from the root to a node - typically a path whose
steps all use the child or attribute axis and whose NodeTests all consist of
an element or attribute name.

Even with this restriction, however, if the schema is recursive then the
number of possible canonical XPaths that can retrieve a node is infinite.

Michael Kay
http://www.saxonica.com/

Received on Sunday, 5 December 2004 22:07:22 UTC