Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

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
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.