OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-dev message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [ubl-dev] infinite loop


Elisa,

I concur.  

Unfortunately these loops occur in many many places in UBL - and so you will have to find Schema tools that detect and ignore them.

While conceptually in theory in modelling world it is possible to have these - and a convenience for modellers - in real world actual cases - uses tend to feel contrived.

And for those few cases - there are better ways of handling them than using recursion to do it.

Trying to use your model view as the information exchange view produces XML exchanges that do not necessarily reflect the optimal XML pattern.

Thanks, DW

-------- Original Message --------
Subject: [ubl-dev] infinite loop
From: elisa blasi <elisablasi@gmail.com>
Date: Fri, June 25, 2010 3:53 am
To: ubl-dev@lists.oasis-open.org

Hi,
I' m working on UBL xsd files to obtain a tree viewer of the documents,but the algorithm enter into an infinite loop because of the structure of the xsd.
For example, in the Order document there is the element "Signature" of type: Signature type. Signature type,that is a complex type, contains the element "SignatoryParty" of type PartyType. PartyType, that is a complexType, contains AgentParty that is a PartyType and will contain another AgentParty element...and so on.
Is it true? I don't understand the meaning of these circular calls.
Regards Elisa


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]