Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Extensible Enumerations Technique

From: "G. Ken Holman" <gkholman@----------------.--->
To: xmlschema-dev@--.---
Date: 3/11/2008 9:31:00 AM
Note that the OASIS Code List Representation Technical Committee is 
offering a layered technique to extended and restricted code lists, 
complete with list-level, code-level and instance-level meta data 
specification and matching:

   genericode 1.0 - lists of codes with list-level and code-level meta data

      http://docs.oasis-open.org/codelist/genericode

   context/value association using genericode 0.3 draft 1
                  - contextual code list usage and instance-level meta data

      http://www.oasis-open.org/committees/document.php?document_id=27454

I hope this is considered helpful.

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

At 2008-03-11 10:11 -0700, Guillaume Lebleu wrote:
>I know techniques for extensible enumerations in W3C XML Schema 1.0 
>have been discussed on this list before (extensively), but I didn't 
>find the exact technique below, so I thought I'd post it here to get 
>feedback/comment.
>
>Enumeration types (say, Enumerated_Type) are defined as xs:union 
>between a Enumerated_Type_Base and Enumerated_Type_Ext in a base XSD file:
>
><xs:simpleType name="Enumerated_Type">
>   <xs:union memberTypes="Enumerated_Type_Base Enumerated_Type_Ext"/>
></xs:simpleType>
>
><xs:simpleType name="Enumerated_Type_Base">
>   <xs:restriction base="xs:NMTOKEN">
>      <xs:enumeration value="ExistingValue"/>
>      ...
>   </xs:restriction>
></xs:simpleType>
>
><xs:simpleType name="Enumerated_Type_Ext">
>   <xs:restriction base="xs:NMTOKEN"/>
></xs:simpleType>
>
>In the xs:redefine section of a separate extension XSD file 
>redefines the Enumerated_Type_Ext:
>
><xs:simpleType name="Enumerated_Type_Ext">
>   <xs:restriction base="Enumerated_Type_Ext">
>      <xs:enumeration value="ExtendedValue"/>
>   </xs:restriction>
></xs:simpleType>
>
>XSLT stylesheets are then optionally used to remove xs:redefine and 
>xs:union given that many tools (particularly XML/OO language 
>binders) do not support these constructs.
>
>Thanks in advance,
>
>Guillaume


--
World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@C...
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/x/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


From info@m... Tue Mar 11 20:30:47 2008
Received: from lisa.w3.org ([128.30.52.41])
	by frink.w3.


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent