Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [XML Schema 1.1] No changes to derive-by-restriction, right?

From: "Paul Kiel" <paul@-----------.--->
To: "'Michael Kay'" <mike@--------.--->, "'Costello, Roger L.'"
Date: 7/17/2009 8:44:00 PM
I understand what you mean with the assertions.  And schematron-like
assertions in the schema itself is helpful.  Perhaps that is the best
solution.  But I've found schematron is a bit too technical for business
folks.  They can create models using xml schema with a good wysiwyg tool,
but the assertions are over their head.
Perhaps folks are looking for something that is impossible, a simple way to
manage large logical models and smaller physical ones (staying in sync).  I
can always hope for the impossible, right?



-----Original Message-----
From: Michael Kay [mailto:mike@s...] 
Sent: Friday, July 17, 2009 1:21 PM
To: 'Paul Kiel'; 'Costello, Roger L.'; xmlschema-dev@w...
Subject: RE: [XML Schema 1.1] No changes to derive-by-restriction, right?
(just a simplification of its description in the specification)

> 
> Of course maybe I have this all wrong.  Perhaps the lack of 
> rules will give some freedom and lead to some interesting 
> implementations of this underused feature.  I would love to 
> see that happen.

Personally I suspect that with XSD 1.1, most restricted types will be
specified not by providing a restricted grammar, but by using the original
grammar in conjunction with assertions. For example, if you want to disallow
an optional element from the content model, it's much easier to assert that
the element is absent than to define a restricted grammar in which it is
omitted.

Regards,

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





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