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

Values with an associated unit of measurement?

  • From: Tom Chmielenski <Tom.Chmielenski@b...>
  • To: xml-dev@x...
  • Date: Thu, 6 Jul 2000 13:38:10 -0400

linear units of measurement
Are there any XML initiatives out there that are currently working on
defining a standard way to represent a numerical value with an associated
unit of measurement?

For instance, suppose I wanted to represent a length of 6 inches.  It could
be represented it a number of ways, here are a few:

<Length>6 inches</Length>
<Length>6 <Units>inches</Units></Length>
<Length units="inches">6</Length>
<Length ref="urn://some.com/standard/units/#US.linear.in">6</Length>
<Length system="US" type="linear" units="inches">6</Length>

If no standard is emerging in this area, (and understanding that there is no
one 'right' way to model this data), how would one model this data such
that:
1.  Conversion of values could be preferred (by XSLT or an app), if
necessary.  Thus, 6 inches could also be represented as 0.5 feet, or 152.4
mm, etc. and still be equivalent.  (Where we do define the conversion
factors also?).  

2.   A standard way to define a unit of measurment is established.  Thus,
all possible combinations ["inches",  "in.", "in", "INCHES", etc.] of the
unit of measurement do not have to be defined.  

3.  A given value has the proper units attached.  Thus <Length>5 square
meters</Length> is invalid.

Seems like a similiar issue would occur with currency values (EURO, USD,
etc.).

Thanks in advance.
Tom

















***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************

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.