Blunders Was: LRUD: 'From' or 'To' ?

New Message Reply About this list Date view Thread view Subject view Author view

From: Michael Lake (mikel_at_speleonics.com.au)
Date: Wed Jan 24 2001 - 11:12:04 CET


Received: (from mdom_at_localhost) by karto.ethz.ch (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) id NAA08361 for cavexml-outgoing; Wed, 24 Jan 2001 13:21:48 +0100
Received: from iggy.triode.net.au (IDENT:root_at_iggy.triode.net.au [203.63.235.1]) by karto.ethz.ch (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id NAA08357 for <cavexml_at_cartography.ch>; Wed, 24 Jan 2001 13:21:47 +0100
Received: from speleonics.com.au (mikel_at_dm1-23.triode.net.au [203.63.34.24]) by iggy.triode.net.au (8.11.1/8.10.1) with ESMTP id f0OCM5Y29686 for <cavexml_at_cartography.ch>; Wed, 24 Jan 2001 23:22:06 +1100
Message-ID: <3A6EAA74.14A5A671@speleonics.com.au>
Date: Wed, 24 Jan 2001 21:12:04 +1100
From: Michael Lake <mikel_at_speleonics.com.au>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14 i686)
X-Accept-Language: en
To: "cavexml_at_cartography.ch" <cavexml_at_cartography.ch>
Subject: Blunders Was: LRUD: 'From' or 'To' ?
References: <200101232158.WAA04334_at_karto.ethz.ch>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-cavexml_at_karto.baug.ethz.ch
Precedence: bulk
Reply-To: cavexml_at_cartography.ch

Richard Knapp wrote:
> Interesting point: should the storage format account for blunders? Seems to me if the data is
> invalid, it shouldn't be allowed into the format (which is enforcing valid data). But that is my
> (probably) naive opinion. <g>

I think the XML should barf-on-blunders. Eg Blunder Martin Laverty's Schema has:
<attribute name="bear" type="double" use="required" minInclusive="0"
             maxInclusive="360" />

This enforces that the value must be within a valid range and it is required.

PS. Note that angles can be expressed as an azimuth, a bearing or less commonly as
mils or grads. Azimuthal readings go from 0 to 360 degrees whereas
bearings only range from 0 to 90 degrees because they are the angle around
a quadrant of the full circle. An example would be South 30 degrees East,
written S-45E.
Thats why in my DTD I used AZIM instead of BEAR.

Mike

-- 
--------------------------------------------------------------------
Michael Lake
Active caver, Linux enthusiast and interested in anything technical.
Safety Convenor, Australian Speleological Federation
Owner, Speleonics (Australia)
--------------------------------------------------------------------


New Message Reply About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Wed Feb 14 2001 - 00:03:52 CET