Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] Using doc() in xs:assert ... the referenced document needs a schema?

From: "Michael Kay" <mike@--------.--->
To: "'Costello, Roger L.'" <costello@-----.--->, <xmlschema-dev@--.--->
Date: 4/27/2009 6:17:00 PM
> I'm not clear on (b) but (a) certainly sounds like the 
> decision to disallow doc() for cross-document validation was 
> done to make it easier to implement 1.1 schema validators. 

No, I don't think that's the case. I think the working group felt that
introducing context-dependent validation (where the validity of a document
depends on factors other than the schema and the instance document) was a
risky architectural innovation, and possibly a step that would be later
regretted. I don't think implementation factors came into it once the
decision was made to support the full XPath syntax and function library. I
discovered when I tried to do it that implementation was trickier than I
thought, but it's not difficult, and certainly I don't think the WG avoided
it for that reason.

Personally, I would like to experiment/innovate with context-dependent
validation, for example by allowing assertions to reference XPath variables
supplied when the validation is invoked; perhaps even variables that can be
bound while validating an ancestor element. I think it could be a very
powerful feature - though I'm sure users would use it in ways I can't
currently imagine.

Michael Kay
http://www.saxonica.com/



From cmsmcq@b... Mon Apr 27 16:21:17 2009
Received: fr


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