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

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

  • To: "Roger L. Costello" <costello@m...>, xml-dev@l...
  • Subject: Re: Re: What are units-of-measure? e.g., what's a "kilometer"?
  • From: Linda Grimaldi <grimlinda@e...>
  • Date: Thu, 17 Jul 2003 14:02:13 -0600 (MDT)

length of a kilometer
This is an advantage.  But effectively, you have introduced a new requirement- not just to describe the length of the river, but to allow for conversion.  The conversion aspect introduces an important differentiator- kilometer itself can usefully be assigned properties which means it has to be promoted from a simple value.

Linda
-------Original Message-------
From: "Roger L. Costello" <costello@m...>
Sent: 07/17/03 01:45 PM
To: xml-dev@l...
Subject: Re:  What are units-of-measure? e.g., what's a "kilometer"?

> 
> Alaric B Snell wrote:

> Roger L. Costello wrote:
>
> > This is quite a radical approach.  I am surprised that there
> > aren't more comments, since the "conventional wisdom" is
> > not to treat kilometer as a property/relation/function, but rather
> > to treat it as the value of a property, e.g.,
> >
> >   <River id="Yangtze">
> >        <length unit="kilometer">6300</length>
> >   </River>
>
> The advantage of "<kilometres>6300</kilometres>" as opposed to <length
> unit="kilometre"> is in modularity of type definition.

I believe that the key advantage of this approach:

   <River id="Yangtze">
        <length>
            <kilometer>6300</kilometer>
        </length>
   </River>

is the capability to state the relationship to a length value expressed
using a different unit-of-measure, e.g.,

   <River id="Yangtze">
        <length>
            <mile>3914</mile>
        </length>
   </River>

Namely, the relationship is:

     "a kilometer property is equal to a mile property  times 1.62".

A very compelling example of this capability is to determine that
two documents, which express a location using different
units-of-measure, are referring to the same location, e.g.,

<Map id="M1">
    <location>
        <cartesian-coordinate>
                ...
        </cartesian-coordinate>
    </location>
</Map>

<Map id="M21">
    <location>
        <polar-coordinate>
                ...
        </polar-coordinate>
    </location>
</Map>

Namely, the relationship is:

    "a cartesian-coordinate property is equal to a polar-coordinate
     property ...".  (If someone can complete this sentence I would be
very
     interested.  I have long forgotten how to convert coordinate
systems.)

I don't believe that with the other approach:

   <River id="Yangtze">
        <length units="kilometers">6300</length>
   </River>

it would be possible to make such relationship statements, and that's a
show-stopping disadvantage.

Thoughts?  /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>

> 

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.