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

 


Help: OASIS Mailing Lists Help | MarkMail Help

ubl-lcsc message

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


Subject: Re: [ubl-lcsc] Is Local/Global a Type-reuse issue?


Thank you, Chee-Kai, for taking the time to address these questions of mine.

At 2003-06-25 16:25 +0800, Chin Chee-Kai wrote:
>Global/local discussion in the XML Schema context is about how
>the elements and types (mostly subtypes) are declared.

I was unaware this was solely the mechanics of declaration ... I 
misunderstood the issue to be one of unique typing.

>In a
>schema design project like this, there could be intimate connection
>between type-reuse and global/local, but there need not be any either.

Thank you for that clarification, as I thought the problem was one in the same.

> >>After the London meeting I was anticipating seeing:
> >>
> >>   /po:Order/cat:BuyerParty/cat:ID
> >>   /po:Order/cat:BuyerParty/cat:BuyerPartyPartyName/cat:BuyerPartyName
> >>   /po:Order/cat:BuyerParty/cat:BuyerPartyAddress/cat:ID
>
>For the latter, I'm not sure how to interpret in a systematic
>manner.  If it's prepending parent's element name to each of
>child element's name, the "cat:ID" ought to be very long
>("cat:BuyerPartyID" and "cat:BuyerPartyAddressID" respectively),
>and wouldn't be depth-wise scalable.

But in London @ID and @Code were singled out as the only constructs that 
were *not* to be prefixed with the context.  This minuted decision in 
London reinforced my misconception that *for everything else* the type was 
explicitly changing to be prefixed with the context name as I cite above.

>The parent
>element of an instance of cat:Address can be named differently,
>and is sufficient to distinguish between two instance child elements
>of cat:Address with exactly same element member names within.

I *totally* agree, Chee-Kai, and I designed my original 0.70 stylesheets 
accordingly and was looking at having to throw out my original work to 
accommodate the decisions made in London for 0.80.

>Incidentally, BuyerPartyType is different from SellerPartyType for
>very different reasons in 0.70 and 0.80 schemas.

An interesting issue ...thank you for detailing it.

>Looking at your Order example, in 0.70's, you would do:
>
> >>   /po:Order/cat:BuyerParty/cat:ID
> >>   /po:Order/cat:BuyerParty/cat:PartyName/cat:Name
> >>   /po:Order/cat:BuyerParty/cat:Address/cat:ID
>
>But in 0.80's, your paths would probably have to look like:
>
>      /po:Order/po:BuyerParty/cat:ID
>      /po:Order/po:BuyerParty/cat:PartyName/cat:Name
>      /po:Order/po:BuyerParty/cat:Address/cat:ID
>
>because BuyerParty element is now defined only in Order reusing
>the type AddressType.

A namespace change for me is so very minor ... I had incorrectly 
interpreted that I would have no reuse and would need explicit template 
rules for XXXPartyPartyName, YYYPartPartyName, etc.

>Type-reuse has been a stated guideline.  0.70 probably didn't
>live up to it for one reason or another.  We hope 0.80 does.

Actually, I was very satisfied with the level of reuse in 0.70 and the 
resulting stylesheets that were needed ... I'm pleased to learn my 
misconceptions from London were unfounded.

Thank you again for your time, Chee-Kai.  I hope that by cc'ing these notes 
to the LCSC list this may have helped others who were under the same 
misconceptions as me when the meetings in London were complete.

.................... Ken


--
Upcoming hands-on courses: XSLT/XPath North America: Aug 12, 2003
-                          XSL-FO     North America: Aug  4, 2003

G. Ken Holman                mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/o/
Box 266, Kars, Ontario CANADA K0A-2E0   +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                      Definitive XSLT and XPath
ISBN 0-13-140374-5                              Definitive XSL-FO
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-11-X              Practical Formatting Using XSL-FO
Member of the XML Guild of Practitioners:    http://XMLGuild.info
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/o/bc



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