From XML to (X)HTML with Semantics Intact

Hi Folks,

 

Consider this XML:

 

<location>

          <latitude>32.904237</latitude>

          <longitude>73.620290</longitude>

          <uncertainty units="meters">2</uncertainty>

</location>

 

It has quite a lot of semantics - it has information about a location;
namely, the location is represented by a collection  (no sequence
implied) of values, one representing the latitude, one representing the
longitude, and one representing the uncertainty of measurement.

 

How would you represent this in (X)HTML, with all of the semantic
richness retained?  That is, can (X)HTML capture all of the semantic
richness, albeit in a different form/markup?  

 

One possible solution is this:

 

<h1>Location</h1>

<ul>

    <li>Latitude: 32.904237</li>

    <li>Longitude: 73.620290</li>

    <li>Uncertainty: 2 meters</li>

</ul>

 

While this does seem to provide the same information as the above XML,
I am a bit uneasy about it.  Can you suggest a way of expressing the
information in (X)HTML that retains the semantic richness of the XML?

 

/Roger

 

Received on Tuesday, 25 July 2006 22:03:06 UTC