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

RE: References to a value of an element in another element?

From: <noah_mendelsohn@us.ibm.com>
Date: Tue, 6 Feb 2007 19:45:37 -0500
To: "Michael Kay" <mike@saxonica.com>
Cc: "'Boris Kolpackov'" <boris@codesynthesis.com>, ccodere@ieee.org, "'Pete Cordell'" <petexmldev@tech-know-ware.com>, xmlschema-dev@w3.org
Message-ID: <OF79B5EFFB.D7CD5E5D-ON8525727B.0003821F-8525727B.000400B8@lotus.com>
RE: References to a value of an element in another element?

Michael Kay writes:

> On the other hand, it might be that everyone ends up 
> implementing the whole
> of XPath 2.0 because it's too much of a pain to implement a 
> subset. That's
> certainly what I intend to do.

Everytime something like this comes up our community winds up 
rediscovering or rediscussing the same tradeoffs.  I think it's worth 
pointing out that the above point, while very important in some contexts, 
is less pertinent in others.  In particular, if you're in an environment 
where you have or can conveniently integrate an existing full function 
XPath implementation, then you're right.  Providing the full XPath not 
only gives users a richer capability, it may be easier for the 
implementer.

Conversely, if you're in an environment in which the existing XPath 
implemenations aren't appropriate for one of the many reasons existing 
implementations sometimes can't be used (e.g. performance, packaging, 
licensing, implementation programming lanuage, error handling or reporting 
model, if evaluation is to be type aware, whether type information can be 
conveniently conveyed from your validation framework to the XPath 
implementation, etc., etc.) then requiring the full XPath language is 
indeed a significant implementation task.  It's also more function to 
test, and whether one can just "trust" the testing done against an 
existing XPath implementation is a maybe. 

So, I don't think there's one answer that's clearly the right one for 
everyone:  you can make good cases both for and against full XPath 2.0, 
limited subset, or some sort of variability.  A related debate has to do 
with whether evaluation should be type-aware.

--------------------------------------
Noah Mendelsohn 
IBM Corporation
One Rogers Street
Cambridge, MA 02142
1-617-693-4036
--------------------------------------
Received on Wednesday, 7 February 2007 00:43:51 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.