Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Why do we have 'Schema Component Constraint: Element Declarations Consistent'

From: "Pete Cordell" <petexmldev@---------.--->
To: "Michael Kay" <mike@--------.--->, <xmlschema-dev@--.--->
Date: 6/26/2008 6:24:00 PM
Is this related to DB (e.g. SQL) data binding?  I'm not sure it has a big 
influence on OOP (JAVA/C++) data binding.

Pete Cordell
Codalogic
For XML C++ data binding visit http://www.codalogic.com/lmx/

----- Original Message ----- 
From: "Michael Kay"
To: "'Pete Cordell'"


> I think the rule was always there because schema was intended for more 
> than
> validation, e.g. for data binding applications, where assignment of types 
> is
> important.
>
> Michael Kay
> http://www.saxonica.com/
>
>> -----Original Message-----
>> I was just wondering why schema has the rules about "Schema Component
>> Constraint: Element Declarations Consistent".  i.e. if two
>> elements in the same complex type have the same name, then
>> they have to have the same type.
>> Surely if the association of element information items to
>> particles is unambiguous and someone wants to declare:
>>
>> <xs:sequence>
>> <xs:element name='a' type='xs:int'/>
>> <xs:element name='a' type='xs:string'/>
>> </xs:sequence>
>>
>> then how does it break XML or schema to allow them to do it?
>> I can see that this might be a problem for XSLT processing,
>> and as such such a schema design could be deemed practice,
>> but is that schemas problem?
>>
>> Thanks,
>>
>> Pete Cordell
>> Codalogic
>> For XML C++ data binding visit http://www.codalogic.com/lmx/



From ht@i... Thu Jun 26 18:02:10 2008
Received: from maggie.w3.org ([193.51.208.68


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