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

Re: Re: maps


xml coordinates
> Bob Hutchison wrote:
> [[
> 
> I'll try again.
> 
> The idiom is 75°15'00" N 43°05'00" W
> 
> The idiom is NOT <lat>75°15'00" N</lat><long>43°05'00" W</long>
> 
> The idiom is NOT <lat>75.25</lat><long>43.08333333333333</long>
> 
> Apparently the former is OK but the later is not.
> 
> Why?
> 
> ]]
> 
> The point of this thread is totally lost on me.
> 
> I'd say that a good way to represent coordinates in XML would be:
> 
> <map.coordinate>
>  <north>
>     <deg>75</deg>
>     <min>15</min>
>     <arc>00</arc>
>  </north>
>  <west>
>     <deg>45</deg>
>     <min>05</min>
>     <arc>00</arc>
>  </west>
> </map.cooordinate>
> 
> (or whatever the names of the elements should be).
> 
> This way to structure the XML is:
> 
> 1) structured
> 2) structured
> 3) easily parsable
> 4) the _numbers_ are represented as values, the _units_ belong to the
> element _type_ i.e. the element name.

This may be better for you.  It's not necessarily better for everyone.

But I'm suspicious.  Let me ask you this:

Do you really always mark up dates as

<date>
  <year>2002</year>
  <month>08</month>
  <day>06</day>
</date>

If you do (which would amaze me) do you think this is the way everyone should 
do it?  What's the problem with 2002-08-06, which doesn't meet your 3 criteria 
above.


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Track chair, XML/Web Services One Boston: http://www.xmlconference.com/
Basic XML and RDF techniques for knowledge management, Part 7 - 
http://www-106.ibm.com/developerworks/xml/library/x-think12.html
Keeping pace with James Clark - http://www-106.ibm.com/developerworks/xml/libra
ry/x-jclark.html
Python and XML development using 4Suite, Part 3: 4RDF - 
http://www-105.ibm.com/developerworks/education.nsf/xml-onlinecourse-bytitle/8A
1EA5A2CF4621C386256BBB006F4CEC



  • References:

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.