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

Re: How should a two-digit airport runway number berepresented

  • From: Dimitre Novatchev <dnovatchev@gmail.com>
  • To: Roger L Costello <costello@mitre.org>
  • Date: Mon, 24 Jun 2024 09:12:03 -0700

Re:  How should a two-digit airport runway number berepresented

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 AM Roger L Costello <costello@mitre.org> 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 — 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 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 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





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