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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Representing Code Lists

[ Lists Home | Date Index | Thread Index ]

Neither of these formats extends easily to allow multiple values for a
given code, e.g. a short form and a long form, or an English form and a
Welsh form (to be UK-parochial for once!). Nor do they allow multiple
codes for the same value, e.g. two-letter and three-letter country
codes: though you could decide that those should be in separate tables.

Michael Kay

> -----Original Message-----
> From: Paul Spencer [mailto:ps@boynings.co.uk] 
> Sent: 21 November 2002 21:45
> To: xml-dev@lists.xml.org
> Subject: [xml-dev] Representing Code Lists
> 
> 
> In government work, it is frequently necessary to use 
> standard codes. When displaying a document using such codes, 
> it would be useful to have a standard format for representing 
> any such list. For example:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <ISO5218-1977 xmlns="http://example.com/namespace";>
> 	<Value Code="1">male</Value>
> 	<Value Code="2">female</Value>
> 	<Value Code="9">not specified</Value>
> </ISO5218-1977>
> 
> or perhaps:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <List Codelist="ISO5218-1977" xmlns="http://example.com/namespace";>
> 	<Value Code="1">male</Value>
> 	<Value Code="2">female</Value>
> 	<Value Code="9">not specified</Value>
> </List>
> 
> I see such lists being made publicly available (subject to 
> any IPR issues). I don't know of any attempts to standardise 
> such a format. Is there any activity in this direction? If 
> not, I shall try to start one through the OASIS e-Government 
> TC. In which case, which format is preferred? Or another one?
> 
> Regards
> 
> Paul Spencer
> 
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org 
> <http://www.xml.org>, an initiative of OASIS 
<http://www.oasis-open.org>

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl>





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS