W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2004

RE: Dump XPATHs from schema?

From: Michael Kay <mike@saxonica.com>
Date: Sun, 5 Dec 2004 22:07:19 -0000
To: "'Bryce K. Nielsen'" <bryce@sysonyx.com>, <xmlschema-dev@w3.org>
Message-Id: <E1Cb4XL-0000wJ-00@ukmail1.eechost.net>

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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:48 GMT