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

Re: Dump XPATHs from schema?

From: Bryce K. Nielsen <bryce@sysonyx.com>
Date: Sun, 5 Dec 2004 21:04:05 -0700
Message-ID: <049e01c4db48$a1ff06f0$ce08bed8@PREZ>
To: <xmlschema-dev@w3.org>

> When people ask for generated XPath expressions, they are usually asking
> some kind of canonical path from the root to a node - typically a path
> steps all use the child or attribute axis and whose NodeTests all consist
> 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.

I think perhaps a more useful tool would be an XPath-Generator, something
that would display an instance document, then selecting a certain node would
give you the XPath you were looking for. But again, this may not be that
practical since most XPaths are relative, you're trying to grab node X while
you are on node Y, so maybe an XPath generator where you tell the
application which node to start with...

But to bring this to full circle, what's the actual purpose for an "XPATH
dump"? Maybe if we knew the 'requirements' better, we could propose a better

Bryce K. Nielsen
SysOnyx, Inc. (www.sysonyx.com)
Makers of xmlLinguist, the EDI-to-XML Translator
Received on Monday, 6 December 2004 04:04:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:07 UTC