How should a two-digit airport runway number be represented in XML?
Roger L Costello <[email protected]> Mon, 24 Jun 2024 15:17:44 +0000
| Newsgroups | gmane.text.xml.devel |
|---|---|
| Message-ID | <SA9PR09MB59527AAEA38B31FD61112E80C8D42@SA9PR09MB5952.namprd09.prod.outlook.com> |
--_000_SA9PR09MB59527AAEA38B31FD61112E80C8D42SA9PR09MB5952namp_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi Folks,
"Runways, all runways, have a 2-digit number that represents the magnetic h=
eading of the runway to the nearest 10 degrees. If the runway's heading is =
265 - 274 degrees, then the runway number is 27 - always drop the last "0."=
The opposite end of the runway is 180 degrees apart, so Runway 09 (90 degr=
ees)."
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 a=
re actually numbered at airports - with exactly two digits.
On the other hand, one might argue that the latter is better because the va=
lue 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
--_000_SA9PR09MB59527AAEA38B31FD61112E80C8D42SA9PR09MB5952namp_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">Hi Folks,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">"<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's heading is 265 — 274 degrees, then the runway number
is 27 — always drop the last “0.” The opposite end of th=
e runway is 180 degrees apart, so Runway 09 (90 degrees).</i>"
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">How to represent a runway number in XML?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">Specifically, how to represent Runway 09?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">Like this:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><runwayNumber>09</runwayNumber><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">Or like this:<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><runwayNumber>9</runwayNumber><o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",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.<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",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't need the leading zero. If the runway number needs to be visually displa=
yed to humans, then a zero can be prepended as desired.<o:p></o:p></span></=
p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">What do you think? Which form is better?<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Calibri",sans-=
serif">/Roger</span><o:p></o:p></p>
</div>
</body>
</html>
--_000_SA9PR09MB59527AAEA38B31FD61112E80C8D42SA9PR09MB5952namp_--