[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Is there a way to reuse and extend an enumeration in XML s

  • To: "'XML Developers List'" <xml-dev@l...>
  • Subject: Re: Is there a way to reuse and extend an enumeration in XML schema
  • From: "William J. Kammerer" <wkammerer@n...>
  • Date: Sun, 6 Mar 2005 19:17:08 -0500
  • Organization: Novannet, LLC. Columbus, US-OH
  • References: <E1D85VN-0004jh-00@u...>

Re:  Is there a way to reuse and extend an enumeration in XML s
But in 98% of the cases, folks will make do with the default set of
(standard ISO  4217) currency codes provided for in the "off-the-shelf"
set of UBL schemas. In another 1.9% of the cases, they will want to
restrict the codes to currencies they "understand" or trade in - and
would want the parser to intercept the "unsupported" currencies.
Extending the list is even rarer.

Personally, I think this is spurious logic;  it seems much easier to
have the schema serve only as a general purpose syntax "gate-keeper" -
and to enforce the use of particular currencies (e.g., USD, CAD, GBP and
EUR) within the application.  And if I were intent on allowing the use
of a currency not yet in the "authorized" list, I'd just intercept the
parser exception and check for the one or two unusual codes.

This insistence on "override" code lists must be a hold-over from the
days of EDI.  Nonetheless, it does provide an interesting problem to
explore and to see if the XML schema specification provides an elegant
way to do code list extensibility.

William J. Kammerer
Novannet
Columbus, OH 43221-3859 . USA
+1 (614) 487-0320

----- Original Message ----- 
From: "Michael Kay" <mike@s...>
To: "'William J. Kammerer'" <wkammerer@n...>; "'XML Developers
List'" <xml-dev@l...>
Sent: Sunday, 06 March, 2005 06:49 PM
Subject: RE:  Is there a way to reuse and extend an enumeration
in XML schema


> I can't speak to Kenneth Stephen's requirements, but I'm pretty sure
> that UBL wants to give users some way of extending (and restricting)
> currency codes (inter alia) without modifying any of the
> distributed UBL schemas.


Surely the right way to tackle this is for the "distributed UBL schemas"
to impose no restrictions on the list of currency codes, and for user
schemas to impose an enumerated list by restricting the "standard" one?

Michael Kay



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.