Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] I respectfully recommend these changes to

From: "G. Ken Holman" <gkholman@----------------.--->
To: "'xmlschema-dev@--.---'" <-------------@--.--->
Date: 5/12/2009 2:06:00 PM
At 2009-05-12 09:51 -0400, Costello, Roger L. wrote:
>Wouldn't it be easier

For the implementation?  I doubt it.  It would add a big burden for 
all validation if some validation needed access to the tree and not 
just the node.

>and better

For the user?  Perhaps, but there are other processes already geared 
for tree access.

>if the XPath was not restricted and allowed us to factor in 
>information, regardless of where it is located in the tree?

That's the problem:  "located in the [entire] tree"

Why burden all schema validation with a requirement to have access to 
the entire tree?

As I understand the way it is currently proposed the validator need 
only look at the element being validated.

Think of the performance impact and the capacities impact of what you 
are suggesting.

A validation algorithm is based on patterns, not on the entire 
tree.  The validator can successfully validate the document by 
tracking where it is amongst the patterns.  The current proposals for 
assertions can be implemented while dealing with patterns and not the 
document tree.  Going beyond that would, I imagine, introduce a 
*fundamental* difference in validation processing that members of the 
committee would outright refuse to support.

Think of validating a 20Gb document made up of:

   <logs>
     <log .... />
     <log .... />
     <log .... />
     ...
   </logs>

Very simple to validate as a pattern.  A *big* burden to support 
assertions for the entire tree.

I'm not on the committee, but I suspect the requirement to keep an 
entire document tree in memory for validation is a 
non-starter.  Whereas dealing with all of the information about an 
element and its attributes can be done easily because that is where 
the validator is at the time.

. . . . . . . . . . . Ken

--
XQuery/XSLT/XSL-FO hands-on training - Los Angeles, USA 2009-06-08
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman@C...
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent