Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


=?ISO-2022-JP?B?V2hhdCBoYXBwZW5zIA==?==?ISO-2022-JP?B?aWYgZmFjZXRzIGNvbg==?==?ISO-2022-JP?B?dHJhZGljdCBlYWNoIA==?= =?ISO-2022-JP?B?b3RoZXJzPw==?=

From: khoyee@---.------.--.--
To: xml-dev@-----.---.---
Date: 10/5/2007 6:13:00 AM
Hi, list members.

This is my first post to the list so please pardon me if I said something weird.

I am currently trying to implement an automatic XML instance generator
based on XML schema. However, I am stuck at the point to decide which
facet is more important than the others.

Let me make my points clearer through an example. Let's say the XML
schema defines a new datatype as such:

<simpleType name="myDecimal">
       <restriction base="decimal">
               <maxInclusive value="0.0"></maxInclusive>
               <enumeration value="1.0"></enumeration>
               <enumeration value="2.0"></enumeration>
               <enumeration value="3.0"></enumeration>
       </restriction>
</simpleType>

I checked this against Validome's XML Schema Validator
(http://www.validome.org/grammar/) but it said the schema is valid,
although all enumeration values contradict the value defined in
maxInclusive.

What I would like to know is that, is there an importance level
amongst facets, i.e. certain facets like enumeration are favored over
others like maxInclusive, defined anywhere in the specification? Or
does this depend on implementations? Or in fact all facets must not
contradict each others?

Thank you for your attention.

--
Choy Kho Yee

Are you debugging your life?


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