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

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
solution.

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

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