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

Re: ANN: a portable data component -- length

  • From: Stephen D Green <stephengreenubl@gmail.com>
  • To: Amelia A Lewis <amyzing@talsever.com>
  • Date: Sat, 9 Apr 2011 18:39:18 +0100

Re:  ANN: a portable data component -- length
If a system finds an ISO date "2011-13-01" it can report it invalid.
It does not know whether it is the month which is wrong or the order
of month and day. If it is meant to be ISO format a la xsd:date then
it might be a good guess that the month is wrong but that might not
necessarily be true. It just reports that it is not a valid date and the
error gets caught, according to externally defined logic about dates.
----
Stephen D Green



On 9 April 2011 18:15, Amelia A Lewis <amyzing@talsever.com> wrote:
> On Sat, 09 Apr 2011 12:00:20 -0400, Liam R E Quin wrote:
>> On Sat, 2011-04-09 at 11:10 -0400, Costello, Roger L. wrote:
>>> Here is the altitude of an aircraft, expressed in both feet and meters:
>>>
>>>      <altitude>
>>>          <feet>12000</feet>
>>>          <meters>3657.6</meters>
>>>      </altitude>
>>>
>>> It is important that the two length values are consistent:
>>
>> The right way to mark this up in most cases is to store only one value
>> and convert as needed.
>>
>> See Normal Form in database theory: information should never be
>> duplicated. That way it can't get out of sync.
>
> Agreed. My initial thought, on seeing the base post, was that this was
> "How to generate problems in data synchronization", not "portable data
> structures".
>
> By including two values in different units, rather than a single value
> and relying upon the *well-known* formulae for conversion, all that is
> achieved is to create doubt as to the accuracy of any reported value.
>
> As for the claim that the assertions will ensure that the data never
> gets out of sync, poppycock. The initial statement is that the
> information is 'portable', and yet this allegedly portable information
> relies upon some external code that enforces assertion validity? And
> what good do assertions do when these values *are* out of sync? Once
> they've gotten out of sync (that is, at any stage of the process at
> which someone fails to verify the assertions, or even any stage at
> which someone uses a different degree of confidence, or uses a
> different chain of conversions to generate values), *you don't know
> which one is correct*.
>
> The following is valid:
>
>     <altitude>
>         <feet>12000</feet>
>         <meters>4000</meters>
>     </altitude>
>
> ... within a certain degree of confidence. 1 m equals one yard
> (rounding up; in some applications this is a perfectly valid
> conversion). Now, it's highly unlikely that such an application
> envisions measurements in thousands (at which point the
> less-than-ten-percent conversion error has made for very large
> differences), but ... in the above example, *which value is correct*?
>
> Or, to quote the storied wisdom of the ancients: a man with one clock
> always knows what time it is. A man with two is never sure.
>
> Amy!
> --
> Amelia A. Lewis                    amyzing {at} talsever.com
> And now someone's on the telephone, desperate in his pain;
> someone's on the bathroom floor, doing her cocaine;
> someone's got his finger on the button in some room--
> no one can convince me we aren't gluttons for our doom.
>                -- Indigo Girls
>
>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>


[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.