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

Mapping XML to XHTML - your recommendation for handling attributes?

From: Costello, Roger L. <costello@mitre.org>
Date: Sat, 26 Aug 2006 17:31:46 -0400
Message-ID: <B8415163A689094689542C617ECA0366F895AC@IMCSRV5.MITRE.ORG>
To: <www-html@w3.org>
Hi Folks,

 

I am mapping an XML document to XHTML.

 

Leaf nodes in the XML document I map to an XHTML <dl> element, e.g.,

 

<aircraft_elevation>12000</aircraft_elevation>

 

I map to:

 

<dl class="aircraft_elevation">

      <dt>Aircraft Elevation</dt>

      <dd>12000</dd>

</dl>

 

Now suppose <aircraft_elevation> has an attribute:

 

<aircraft_elevation units="meters">12000</aircraft_elevation>

 

How do you recommend I map the attribute?  

 

/Roger
Received on Saturday, 26 August 2006 21:31:10 GMT

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