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

Re: What are units-of-measure? e.g., what's a "kilometer"?

what is kilometer
A kilometer is a unit of length, and length is a dimension of the Yangtze

Since most programming languages don't make these distinctions it's tough to
give you a programming language analogy. But in XML, one usage I have seen
recommended is to make dimension an element name and units a qualifying
attribute, e.g.,

<river name="Yangtze">
  <length units="kilometer">6300</length>

For each two readers of this list, there will probably be three different
opinions. ;-}

Bob Foster

----- Original Message -----
From: "Roger L. Costello" <costello@m...>
To: <xml-dev@l...>
Cc: "Costello,Roger L." <costello@m...>
Sent: Thursday, July 17, 2003 5:56 AM
Subject:  What are units-of-measure? e.g., what's a "kilometer"?

> Hi Folks,
> Consider this statement:
>   "The length of the Yangtze River is 6300 kilometers."
> What is a "kilometer"?
> 1. Is kilometer a class?  Is 6300 an instance of the kilometer class?
>      kilometer class: {..., 6300, ...}
> 2. Is kilometer a function? e.g., kilometer(Yangtze) --> 6300
>    In general: kilometer(physical object) --> number
>    "The kilometer function maps a physical object to a number."
> 3. Is kilometer a property? e.g., a property of the Yangtze River
>    is kilometer (this doesn't quite sound right; perhaps there's
>    another way of expressing this that is more natural?)
> 4. Is kilometer a label?  If so, then what's a label?
> Or is it something else?  /Roger
> -----------------------------------------------------------------
> 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>


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.
First Name
Last Name
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.