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

RE: [XML Schema 1.1] I respectfully recommend these changes to <assert> and <alternative>

From: Costello, Roger L. <costello@mitre.org>
Date: Tue, 12 May 2009 09:51:41 -0400
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Message-ID: <9E51F88D5247B648908850C35A3BBB5003F3FE371E@IMCMBX3.MITRE.ORG>
RE: [XML Schema 1.1] I respectfully recommend these changes to  	<assert> and <alternative>
Hi Mukul,

> We could define suitable assertions, at anywhere in the hierarchy of
> the Schema document.

Yes, I agree that we can do that. 

But it's a fragile situation. Suppose that you want your book assertions to take into account other information, information that is in another part of the tree. You will need to either:

1. Move the assertion to a location that encompasses the current book information plus the new information, or

2. Redesign the data, placing the other information in with the book.

Wouldn't it be easier and better if the XPath was not restricted and allowed us to factor in information, regardless of where it is located in the tree?

/Roger
Received on Tuesday, 12 May 2009 13:52:17 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.