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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: Units of measurement?

[ Lists Home | Date Index | Thread Index ]
  • From: Ronald Bourret <rbourret@ito.tu-darmstadt.de>
  • To: "'XML Dev'" <xml-dev@ic.ac.uk>
  • Date: Thu, 15 Jul 1999 09:55:12 +0200

Jeffrey E. Sussna wrote:

> Does the XSchema datatypes spec support the notion of units of 
measurement?
> In other words:
>
> 	element "x" is of type "speed", which can be in "mph" or "kph"
>
> A potential representation of this might be:
>
> 	<x units="mph">200</x>

Sort of.  What you can actually do is define a speed data type and say that 
the *units* attribute (not the x element) is of type speed -- that is, its 
value is either "mph" or "kph".  You can also say that the x element must 
have a units attribute.

Note that you can also do this specific example with DTDs, by defining 
units as an attribute with an enumerated type.

(Nit: XSchema is the name of the predecessor of DDML. I believe you are 
referring to XML Schemas -- the schema language being developed by the W3C. 
 Given the amount of confusion over these names, I'm beginning to wonder if 
we shouldn't donate the XSchema name to the W3C...)

-- Ron Bourret


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)






 

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

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