[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [ebxml-dev] Core Components
Steve Capell wrote: > > Shouldn't your US and French Invoice total element both provide a > reference to the same CC UID? >>>>>>>>>>>>> Steve: Yes - you are correct but with an explanation due. I personally use a system to attach the UID via a "fixed" attribute to each element. Therefore, the XML instance would still be written as: <InvoiceTotal currency="USD" displaySign="$">12.00</InvoiceTotal> however, when a validating parse is done by calling a DTD containing the following: <!ELEMENT InvoiceTotal (#PCDATA)> <!ATTLIST InvoiceTotal UID "urn:uid:com-xmlglobal-registry:ubl81002" #FIXED currency CDATA #REQUIRED displaySign ( $ | € | UKP ) #REQUIRED > the XML instance fragment is available as: <InvoiceTotal UID="urn:uid:com-xmlglobal-registry:ubl81002" currency="USD" displaySign="$">12.00</InvoiceTotal> and you can write handlers to use the UID attribute value. For implementation, I would state that it is more efficient to use the FIXED attribute mechanism so you have access to the UID at deisgn time, yet do not have to incur the overhead during runtime by turning the validation mechanism off on your parser. Duane - VP Strategic Relations, Technologies Evangelist XML Global Technologies **************************** ebXML software downloads - http://www.xmlglobal.com/prod/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC