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

Re: ANN: a portable data component -- length

  • From: Liam R E Quin <liam@w3.org>
  • To: John Cowan <cowan@mercury.ccil.org>
  • Date: Sun, 10 Apr 2011 00:41:10 -0400

Re:  ANN: a portable data component -- length
On Sat, 2011-04-09 at 15:55 -0400, John Cowan wrote:
> Liam R E Quin scripsit:
> 
> > (I'd use metric/SI units in a program as they're easier to deal with,
> > and mixed-based ambiguity like 3 feet 7 inches doesn't occur)
> 
> If you want to represent measurements, as distinct from counts, you need
> to provide the measurement in the units actually measured.

+1 if they are actually being measured; one also has to give tolerance.

On Pete Cordell's point, the name of the element - I used <measurement>
rather than <distance> for no good or bad reason - one can't know a
priori whether the fact it's a measurement is more or less important
than the fact it's a linear measurement through space, a distance. One
is not intrinsically more "semantic" than the other.  But we can know
that there's a common danger in using element names for field names that
come from some non-XML source, as you might end up with non-XML
chracters to deal with, or markup in the field name -- e.g. mathematical
notation, or annotations (Japanese ruby comes to mind).

Someone else said that Normal Form is no gold standard - it isn't, but
the principle of not duplicating data still holds.  If Costelloitis
takes hold, you should at least mark which of two values is primary and
which was derived.

<jug id="jug">
  <capacity units="imperial_UK">4 gallons</capacity>
  <capacity units="US" derivedfrom="imperial_UK">4.5 gallons</capacity>
  <size>little</size>
  <colour>brown</colour>
</jug>


-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://www.fromoldbooks.org/




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.