← Prev in month ← Prev in thread
Next in thread → Next in month →

RE: Changes of code types

From
Sylvia Webb <>
Date
2005-09-07T01:29:54+00:00
ID
Thread
RE: Changes of code types
Tim, Peter

this is what David produced in the draft 2
phase 0 UBL 2.0 schemas for UBLAmount

<!-- ===== Type Definitions ===== -->
<xsd:complexType name="CurrencyCodeType">
<xsd:simpleContent>
<xsd:extension base="clm54217:CurrencyCodeContentType">
<xsd:attribute name="listID" type="xsd:normalizedString" fixed="4217"
use="optional"/>
<xsd:attribute name="listAgencyID" type="xsd:normalizedString" fixed="5"
use="optional"/>
<xsd:attribute name="listAgencyName" type="xsd:string" fixed="ISO"
use="optional"/>
<xsd:attribute name="listName" type="xsd:string" fixed="Currency"
use="optional"/>
<xsd:attribute name="listVersionID" type="xsd:normalizedString" fixed="2001"
use="optional"/>
<xsd:attribute name="name" type="xsd:string" use="optional"/>
<xsd:attribute name="languageID" type="xsd:language" fixed="en"
use="optional"/>
<xsd:attribute name="listURI" type="xsd:anyURI"
fixed="http://www.bsi-global.com/Technical%2BInformation/Publications/_Publi
cations/tig90x.doc" use="optional"/>
<xsd:attribute name="listSchemeURI" type="xsd:anyURI"
fixed="urn:un:unece:uncefact:codelist:draft:54217:2001" use="optional"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="UBLAmountType">
<xsd:simpleContent>
<xsd:restriction base="udt:AmountType">
<xsd:attribute name="currencyID" type="clm54217:CurrencyCodeContentType"
use="required"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>

this is in the specialized datatypes schema

and there are entries like

<xsd:complexType name="PriceAmountType">
<xsd:simpleContent>
<xsd:extension base="sdt:UBLAmountType"/>
</xsd:simpleContent>
</xsd:complexType>

in various places in the CBC schema

(i note in passing though that some BBIEs in David's CBC
have

<xsd:complexType name="ExtensionAmountType">
<xsd:simpleContent>
<xsd:extension base="udt:AmountType"/>
</xsd:simpleContent>
</xsd:complexType>
)


So obviously he found it was possible to get the sdt UBLAmount
into schemas but I don't know how he did it. I doubt he had to hand
edit it all (there are so many sdt:UBLAmountType BBIEs) but
he might have had to do some 'hard-coding' of the schema generator.
In essence I think it very important, for the integrity of the tool at
least,
to ensure this acn be done. To my mind reverting all UBLAmount
datatypes to Amount would be a last resort and that I'm not convinced
it is necessary.

All the best

Steve


----- Original Message ----- 
From: "Tim McGrath" <>
To: "Peter Larsen Borresen" <>;
<>
Sent: Tuesday, September 06, 2005 10:32 AM
Subject: Re: Changes of code types
← Prev in month ← Prev in thread
Next in thread → Next in month →