[ubl-lcsc] RE: [ubl-ndrsc] XML Schema with Global Defined Elements.

From
Burcham, Bill <>
Date
2003-01-15T23:09:39+00:00
ID
Thread
[ubl-lcsc] RE: [ubl-ndrsc] XML Schema with Global Defined Elements.
Title: Message

Great 
work Gunther.  And fast!  I see (XML Spy 5 sees) these bugs in the 
schema:

 

Element ForeignExchangeContract is undefined (ref'd from 
ExchangeRateDetailsType)

 

I 
pondered and investigated why your scripts failed to stumble on the collisions I 
had predicted (previous post).  I had been looking solely at the property 
terms and qualifiers and not appending the representation terms.  Doing so 
disambiguates all the ambiguous cases I had uncovered.  Makes sense to me 
at least.

 

to 
point (a) below: I'd opt for putting the documentation/annotation with the type 
rather than the element

 

to 
point (b) below.  Yes it is possible.  And in fact your schemas (e.g. 
UBL_Reusable_05.xsd) has annotations on the local elements.

 

I 
don't understand (c).  and (d) is a genuine collision -- LCSC -- can you 
repair to your satisfaction?

 

Also, 
putting on my XML technologist hat -- is anyone else uncomfortable with all the 
noise in our our complex type names... isn't FooDetailsType a bit much?  
FooType was bad enough!  (recall XSD has different namespaces for elements 
and types -- but I digress).

 

-Bill

  

  
-----Original Message-----
From: Stuhec, Gunther 
  [mailto:] 
Sent: Wednesday, January 15, 2003 
  4:34 PM
To: UBL-LCSC (); UBL-NDRSC 
  ()
Subject: [ubl-ndrsc] XML Schema 
  with Global Defined Elements.

  
Hello all, 

  
I changed my Perl-Script now according the NDRSC 
  definitions of Burlington. It generates all BIEs as global defined elements 
  now. You'll find the complete package as an attached zip file.

  
Due to problems with Tims Excel spreadsheet 
  "UBL_Library_0p70_Reusable.xls", I still used the Excel spreadsheet 
  "UBL_Reusable_04.xls". I renamed it in ""UBL_Reusable_05.xls", now.

  
There are still some problems with global defined 
  elements: 
a.) Where I put the annotation of 
  all BIEs? Within the complexType, or within each global defined element? 
  

  
b.) Is it possible to put an annotation within an 
  defined element, which refers to a global defined element? 

  
c.) There does not existing an global defined 
  annotation of generic (reusable) BBIEs, which are defined as global defined 
  elements. My perl script taking always the annotations from the last defined 
  BBIE.

  
d.) There existing the tag name "PaymentTerms" 
  twice. One for "Payment Terms. Details" and the other for "Payment Terms. 
  Text". Both is correct, because we decided that we can eliminate the 
  representation terms "Text" and "Details". I changed the "PaymentTerms" of 
  "Payment Terms. Text" into "PaymentTermsPaymentTerms". But this looks not very 
  nice. I guess, we will get this problem very often.

  
Kind regards, 

  
        Gunther 

  
<<UBL_LCSC_2002_01_15.zip>>