W3C home > Mailing lists > Public > www-html@w3.org > July 2006

From XML to (X)HTML with Semantics Intact

From: Costello, Roger L. <costello@mitre.org>
Date: Tue, 25 Jul 2006 18:05:41 -0400
Message-ID: <B8415163A689094689542C617ECA0366E04423@IMCSRV5.MITRE.ORG>
To: <www-html@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:07 GMT