[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Dump XPATHs

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>
xsd to xpaths

> 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

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.