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


Help: OASIS Mailing Lists Help | MarkMail Help

ubl message

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

Subject: Re: [ubl] Question about Extension Schemas

At 2010-03-29 10:14 -0400, Betty Harvey wrote:
>A few weeks ago I started writing some more information on WIKI.  I started
>reading the NDR on the extension schemas and found it very confusing.
>The text in the NDR isn't very descriptive.

Can you characterize where you felt the NDR were misleading?  NDRs 
aren't meant to be tutorial but only a set of rules.

>Can someone send me a
>small-compliant example of how a UBL extension should be constructed.

I posted one recently in the discussion of signature extensions:


Note that the signature details are changed from that post, but the 
post illustrates the use of an extension.

Here is an example from my training material (actually from my 
XSLT/XQuery class in my discussion of the utility of namespaces):

<Invoice xmlns="urn:oasis:...:xsd:Invoice-2"
       <ext:ExtensionAgencyName>Crane Softwrights Ltd.
       <ext:ExtensionReasonCode listURI="urn:x-Demo:Demo:ReasonCodes">1
           <demo:Thing>This is a test</demo:Thing>
           <demo:Total currencyID="GBP">100.00</demo:Total>


The second day of my two-day UBL class directs the students on the 
creation of extensions.

I'm assuming you are reading:


Those NDRs require that ext:UBLExtensions be the first child 
[ELD12].  The extensions schema has the structural descriptions 
necessary for the above illustration:


What rules for extensions do you think would improve the NDR?


. . . . . . . . Ken

XSLT/XQuery training:         San Carlos, California 2010-04-26/30
Principles of XSLT for XQuery Writers: San Francisco,CA 2010-05-03
XSLT/XQuery training:                 Ottawa, Canada 2010-05-10/14
XSLT/XQuery/UBL/Code List training: Trondheim,Norway 2010-06-02/11
Vote for your XML training:   http://www.CraneSoftwrights.com/o/i/
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/o/
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/o/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

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