Tip: Convert from HTML to XML with HTML Tidy
By Benoit Marchal
2003-12-16
Listing 2. index.xml (an excerpt)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="generator" content=
"HTML Tidy for Mac OS X (vers 1st June 2003), see www.w3.org" />
<title>Journey to Windsor</title>
</head>
<body>
<table>
<tr>
<td width="15"></td>
<td><font size="3" face="Helvetica">Journey to Windsor<br />
Benoît Marchal<br />
July 2003<br />
<br />
<a href=
"mailto:bmarchal@pineapplesoft.com">bmarchal@pineapplesoft.com</a></font></td>
</tr>
</table>
<center>
<table border="3">
<tr>
<td><a href="pages/dscn0824.html"><img src=
"thumbnails/dscn0824.jpg" border="0" alt="dscn0824" /></a><br />
<font size="3" face="Helvetica">dscn0824.jpg<br />
A bright, red mailbox inside the castle. It seems oddly familiar in
an historic setting.<br />
Windsor Castle<br />
© 2003, Benoît Marchal</font></td>
</tr>
</table>
</center>
</body>
</html>
|
What if you're not happy with the XHTML vocabulary? Read on.
Tutorial Pages:
»
Preserve Legacy Web Sites With This Handy Utility
»
Tool Of The Trade
»
Listing 1. index.html (an excerpt)
»
Tidying Up
» Listing 2. index.xml (an excerpt)
»
Further Processing
»
Listing 3. index-transform.xml (an excerpt)
»
Listing 4. cleanup.xsl
»
Conclusion
First published by IBM developerWorks