On 15-04-15 23:11, Thomas Beale wrote:
> On 15/04/2015 17:28, Bert Verhees wrote:
>> On 15-04-15 17:19, Dmitry Baranov wrote:
>>> Sorry Bert ) I had to explain that Oracle 11 is a business 
>>> requirement, not a hardware limitation.
>>>
>>>> Just do it, and then it should run fine, although you have to 
>>>> change the
>>>> XML-Schemas (a bit) before registering them to Oracle. I already
>>>> explained to you before what and why.
>>> I remember your advise but not sure that changing all the sequences 
>>> to choices is a right way for many reasons. And I'm almost sure that 
>>> it's an Oracle bug since other XSD validation tools (visual studio, 
>>> netbeans and eclipse) say that my instance files are all OK and 
>>> conform to XML schema.
>>
>> You are right it is a messy solution, but if you use "sequence", like 
>> it is defined in the XML Schema, you have to take care that all the 
>> nodes in your XML are in the right/defined order.
>> I think this is hard to achieve when XML-files are created in 
>> production, but of course, you can arrange that as an alternative.
>>
>> I think it is a stupid rule in the XML-Schema standard.
>
> I just hit this in doing the AOM2 schema. It's a completely senseless 
> rule, clearly a hangover from 'document' thinking - nothing to do with 
> 'data' thinking.  I ended up replacing <sequence> with.
>
> <xs:choice maxOccurs="unbounded">

It is a poor man's choice, because of the side-effects.
The "choice"-constraint makes the engine ignore the minOccurs/maxOccurs 
constraints in the elements under the choice element.

>
> I have to say, XML-schema based data looks extremely unattractive as a 
> basis for anything except data exchange. I wouldn't try to implement 
> anything important inside a system with it, you are too compromised in 
> too many ways.

It is also used, as I wrote yesterday, to tell an XML-database how, in a 
specific namespace, the data are arranged, in that way the database can 
auto-create indexes, etc.
There is no other way to communicate the structure of XML-documents, and 
even if we found another way, or invented it ourselves, we still would 
need a broad acceptation.

I never heard that there is any work going on in the committees, because 
XML Schema 1.1 is almost 15 years old. I believe it is considered finished.

If that is true, it is very sad.

Bert

Reply via email to