Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: xs:choice and xs:sequence question

From: "Michael Kay" <mike@--------.--->
To: "'George Cristian Bina'" <george@---------.--->, <d_a_carver@-----.--->
Date: 1/12/2006 5:04:00 PM
> oXygen reports the error with a link to the specification 
> related with that:
> http://www.w3.org/TR/xmlschema-1/#cos-nonambig

A tangential remark: I wonder how useful this is? I know Appendix C says
that validity errors "should" be reported citing the chapter and verse of
the spec, but is there really any serious prospect that the average schema
author will get any value from this? Your link points to the sentence:

"A content model must be formed such that during .validation. of an element
information item sequence, the particle component contained directly,
indirectly or .implicitly. therein with which to attempt to .validate. each
item in the sequence in turn can be uniquely determined without examining
the content or attributes of that item, and without any information about
the items in the remainder of the sequence."

I suspect most users can't even parse the syntax of this sentence, let alone
understand what it means.

I decided in Saxon that there wasn't any point in referring people to the
spec, and instead try to explain what's wrong in my own words. In this case
you will get a message to the effect: "the content model is ambiguous,
<elementname> appears in more than one place".

Any views on this from users?

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



From george@o... Thu Jan 12 18:50:18 2006
Received: from


transparent
Print
Mail
Digg
delicious
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