Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: optional, but at least one required

From: "Michael Kay" <mike@--------.--->
To: "'Pete Cordell'" <petexmldev@--------------.--->
Date: 10/12/2007 4:42:00 PM
> 
> Our problem with the xpath stuff is that we unmarshal into 
> strongly typed C++ objects. 

Products with that kind of architecture already seem to struggle with many
aspects of XML Schema conformance, for example some of them have great
trouble with mixed content. That suggests to me that if you're aiming for
complete support of XML Schema validation rules, you've got the wrong
architecture. Or perhaps it suggests that there might be a need for an XML
Schema profile for data binding. Certainly I don't think one can define a
mechanism for integrity constraints using general predicates (which is
certainly needed) without making some assumptions about the data model, and
it's going to be difficult to apply those predicates after converting the
data into a model that is significantly different from the original.

> 
> I've also just noticed the xs:alternative construct.  I 
> haven't had a chance to digest it yet, but it doesn't seem 
> great to me!  It might be helpful in a document oriented 
> world, but in a data oriented world, I'd rather have a 
> simpler language, and modify the schema accordingly, so that 
> you get something like:
> 
>     <message><messageTypeBase64>jkhgkjh</messageTypeBase64></message>
> 

Actually I think the use cases for conditional type assignment come as much
or more from the "data" world as the document world. The overwhelming
experience is that people aren't prepared to design their XML instances to
fit within the constraints imposed by XML Schema, they want to write schemas
that describe the data as they have designed it.
 
> I'm going to find something else to do, because this is 
> depressing me 

Please, first, submit your comments on the spec where they will receive
attention!

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


From boris@c... Fri Oct 12 14:51:39 2007
Received: from aji.w3.org ([1


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