<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:annotation="http://thinkinghard.com/annotation"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Html Annotation Using Namespace Attributes</title>
<link rel="stylesheet" type="text/css" href="PopulationGraph.css"/>
<script type="text/javascript" src="DrawPopulationGraphBars.js"></script>
</head>
<body onload="drawPopulationBars(getPopulationFromNamespaceAttribute);">
<h1>Populations of Western English-Speaking Countries</h1>
<p><b>Implementation:</b> Specify population of each country
as a namespace attribute of each element containing the country's name.</p>
<p>(Note: this example does not work, which is why the population bars are all zero length.)</p>
<table id="populationTable">
<tr><td id="australia" annotation:population="20000000">Australia</td></tr>
<tr><td id="canada" annotation:population="33000000">Canada</td></tr>
<tr><td id="ireland" annotation:population="4000000">Ireland</td></tr>
<tr><td id="nz" annotation:population="4000000">New Zealand</td></tr>
<tr><td id="uk" annotation:population="61000000">United Kingdom</td></tr>
<tr><td id="usa" annotation:population="298000000">United States of America</td></tr>
</table>
<p><input type="button" value="W3C Validate this page" onclick="w3cValidate();"/> (fails because of the <b>"annotation:"</b> namespace definition and because of the <b>"annotation:population"</b> attribute)</p>
</body>
</html>