Re: How should a two-digit airport runway number be represented in XML?

Dimitre Novatchev <[email protected]> Mon, 24 Jun 2024 09:12:03 -0700
Newsgroups gmane.text.xml.devel
Message-ID <CAK4KnZd67gAGn2cA-W+VtwJgeoYjQBV2OhvSX3uR-MgH2AcJxw@mail.gmail.com>
--0000000000006ffc4e061ba50bcf
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Roger,


> Specifically, how to represent Runway 09?

>

> Like this:

>

> <runwayNumber>09</runwayNumber>

>

> Or like this:

>

> <runwayNumber>9</runwayNumber>

>

> One might argue that the former is better because it reflects how runways
are actually numbered at airports - with exactly two digits.

>

> On the other hand, one might argue that the latter is better because the
value is an integer and the removal of the leading zero puts the integer
into a normalized/standardized representation. You might further argue
> that XML is for machine processing and machines don't need the leading
zero. If the runway number needs to be visually displayed to humans, then a
zero can be prepended as desired.

>

> What do you think? Which form is better?

>

> /Roger


Why not allow *both *of these?

In this way, if a human must manually edit the  XML document, they will not
be committing any mistake writing the number in any of the two possible
ways.



Thanks,

Dimitre

On Mon, Jun 24, 2024 at 8:17=E2=80=AFAM Roger L Costello <[email protected]=
g> wrote:

> Hi Folks,
>
>
>
> "*Runways, all runways, have a 2-digit number that represents the
> magnetic heading of the runway to the nearest 10 degrees. If the runway's
> heading is 265 =E2=80=94 274 degrees, then the runway number is 27 =E2=80=
=94 always drop
> the last =E2=80=9C0.=E2=80=9D The opposite end of the runway is 180 degre=
es apart, so
> Runway 09 (90 degrees).*"
>
>
>
> How to represent a runway number in XML?
>
>
>
> Specifically, how to represent Runway 09?
>
>
>
> Like this:
>
>
>
> <runwayNumber>09</runwayNumber>
>
>
>
> Or like this:
>
>
>
> <runwayNumber>9</runwayNumber>
>
>
>
> One might argue that the former is better because it reflects how runways
> are actually numbered at airports - with exactly two digits.
>
>
>
> On the other hand, one might argue that the latter is better because the
> value is an integer and the removal of the leading zero puts the integer
> into a normalized/standardized representation. You might further argue th=
at
> XML is for machine processing and machines don't need the leading zero. I=
f
> the runway number needs to be visually displayed to humans, then a zero c=
an
> be prepended as desired.
>
>
>
> What do you think? Which form is better?
>
>
>
> /Roger
>

--0000000000006ffc4e061ba50bcf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div dir=3D"ltr">
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">Hi Roger,</span></p><p class=3D"MsoNormal"><span style=3D"font-famil=
y:&quot;Calibri&quot;,sans-serif"><br></span></p><p class=3D"MsoNormal"><sp=
an style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; Specifically, =
how to represent Runway 09?</span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">&gt; </span>

</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">Like this:<u></u=
><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">&gt; </span>

</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&lt;runwayNumber=
&gt;09&lt;/runwayNumber&gt;<u></u><u></u></span></p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt;=C2=A0 </spa=
n><span style=3D"font-family:&quot;Calibri&quot;,sans-serif"><u></u></span>=
</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">Or like this:<u>=
</u><u></u></span></p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt;=C2=A0 </spa=
n><span style=3D"font-family:&quot;Calibri&quot;,sans-serif"><u></u></span>=
</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&lt;runwayNumber=
&gt;9&lt;/runwayNumber&gt;<u></u><u></u></span></p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt;=C2=A0 </spa=
n><span style=3D"font-family:&quot;Calibri&quot;,sans-serif"><u></u></span>=
</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">One
 might argue that the former is better because it reflects how runways=20
are actually numbered at airports - with exactly two digits.<u></u><u></u><=
/span></p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">On
 the other hand, one might argue that the latter is better because the=20
value is an integer and the removal of the leading zero puts the integer
 into a normalized/standardized representation.
 You might further argue <br></span>
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">that XML is for =
machine processing and machines
 don&#39;t need the leading zero. If the runway number needs to be visually=
=20
displayed to humans, then a zero can be prepended as desired.<u></u><u></u>=
</span></p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt;=C2=A0 </spa=
n><span style=3D"font-family:&quot;Calibri&quot;,sans-serif"><u></u></span>=
</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">What do you thin=
k? Which form is better?<u></u><u></u></span></p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt;=C2=A0 </spa=
n><span style=3D"font-family:&quot;Calibri&quot;,sans-serif"><u></u></span>=
</p>
<p class=3D"MsoNormal">
<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">&gt; </span>

<span style=3D"font-family:&quot;Calibri&quot;,sans-serif">/Roger</span></p=
><p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans=
-serif"><br></span></p><p class=3D"MsoNormal"><span style=3D"font-family:&q=
uot;Calibri&quot;,sans-serif">Why not allow <b>both </b>of these?<br></span=
></p><p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,=
sans-serif">In this way, if a human must manually edit the=C2=A0 XML docume=
nt, they will not be committing any mistake writing the number in any of th=
e two possible ways.</span></p><p class=3D"MsoNormal"><span style=3D"font-f=
amily:&quot;Calibri&quot;,sans-serif"><br></span></p><p class=3D"MsoNormal"=
><span style=3D"font-family:&quot;Calibri&quot;,sans-serif"><br></span></p>=
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">Thanks,</span></p><p class=3D"MsoNormal"><span style=3D"font-family:=
&quot;Calibri&quot;,sans-serif">Dimitre<br></span></p>

</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=
On Mon, Jun 24, 2024 at 8:17=E2=80=AFAM Roger L Costello &lt;<a href=3D"mai=
lto:[email protected]">[email protected]</a>&gt; wrote:<br></div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px=
 solid rgb(204,204,204);padding-left:1ex"><div class=3D"msg8155805934112396=
107">





<div lang=3D"EN-US" style=3D"overflow-wrap: break-word;">
<div class=3D"m_8155805934112396107WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">Hi Folks,<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">&quot;<i>Runways, all runways, have a 2-digit number that represents=
 the magnetic heading of the runway to the nearest 10 degrees. If the runwa=
y&#39;s heading is 265 =E2=80=94 274 degrees, then the runway number
 is 27 =E2=80=94 always drop the last =E2=80=9C0.=E2=80=9D The opposite end=
 of the runway is 180 degrees apart, so Runway 09 (90 degrees).</i>&quot;
<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">How to represent a runway number in XML?<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">Specifically, how to represent Runway 09?<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">Like this:<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">&lt;runwayNumber&gt;09&lt;/runwayNumber&gt;<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">Or like this:<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">&lt;runwayNumber&gt;9&lt;/runwayNumber&gt;<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">One might argue that the former is better because it reflects how ru=
nways are actually numbered at airports - with exactly two digits.<u></u><u=
></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">On the other hand, one might argue that the latter is better because=
 the value is an integer and the removal of the leading zero puts the integ=
er into a normalized/standardized representation.
 You might further argue that XML is for machine processing and machines do=
n&#39;t need the leading zero. If the runway number needs to be visually di=
splayed to humans, then a zero can be prepended as desired.<u></u><u></u></=
span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">What do you think? Which form is better?<u></u><u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif"><u></u>=C2=A0<u></u></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:&quot;Calibri&quot;,sans-=
serif">/Roger</span><u></u><u></u></p>
</div>
</div>

</div></blockquote></div><br clear=3D"all"><br></div>

--0000000000006ffc4e061ba50bcf--