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

Re: XPath 2.0 Best Practice Issue: Graceful Degradation

  • From: "James Fuller" <james.fuller.2007@g...>
  • To: "Costello, Roger L." <costello@m...>
  • Date: Tue, 29 Jan 2008 22:03:22 +0100

Re:  XPath 2.0 Best Practice Issue: Graceful Degradation
On Jan 29, 2008 8:48 PM, Costello, Roger L. <costello@m...> wrote:

> 2. Do you agree with all the above?

kind of....

schema validation sometimes gets confused with other things (that we
have present in our coding languages) like;

* try/catch errors
* assertions
* static analysis warnings/errors
* type errors ('surely this is for validation' he says)
* etc

so if one doesn't get confused with the above programmatic structures,
then I do not think there anything  fundamentally wrong with version
1; being able to partially apply schema validation in a procedural
manner must have some uses... though doesn't schema-element() have
something to do with substitution groups ?

All this kind of reminds me of partial xslt processing using that java
juxy thing, which is useful in unit test situations.

I think that there is a problem with version 2 in that it is making a
lot of assumptions with not having any namespace information in the
form of fully qualified elements ... past that version 1 represents a
corner case in xpath2 that could probably be replicated with
combination of xpath1 and other stuff (xsl, xquery) ...  but if its
being argued for schema validation I would just suggest using
schematron, if the itch is so great to use xpath (whatever version) to
constrain/validate one's xml.

cheers, Jim Fuller


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.