This is my XML file:
<?xml version="1.0"?>
<DICTIONARY>
<WORD>
<ADJECTIVE>beautiful</ADJECTIVE>
<MEANING>something that looks nice</MEANING>
<SYNONYM>gorgeous</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>clean</ADJECTIVE>
<MEANING>free of dirt</MEANING>
<SYNONYM>spotless</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>fancy</ADJECTIVE>
<MEANING>something that's decorative and not plain</MEANING>
<SYNONYM>elaborate</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>sparkling</ADJECTIVE>
<MEANING>to shine or glisten</MEANING>
<SYNONYM>shiny</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>expensive</ADJECTIVE>
<MEANING>very high-priced</MEANING>
<SYNONYM>costly</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>powerful</ADJECTIVE>
<MEANING>having or exerting great force</MEANING>
<SYNONYM>mighty</SYNONYM>
</WORD>
</DICTIONARY>
Here's my HTML file:
<html>
<body>
<xml id="dict" src="a.xml"></xml>
<table border="1" datasrc="#dict">
<tr>
<th>Adjective</th>
<th>Definition</th>
<th>Synonym</th>
</tr>
<tr>
<td><span datafld="ADJECTIVE"></span></td>
<td><span datafld="MEANING"></span></td>
<td><span datafld="SYNONYM"></span></td>
</tr>
</table>
</body>
</html>
Here's the problem: the table headings (adjective, definition, synonym) are displayed in every other row. They're not displayed only once at the top of the table. The table looks like this:
<?xml version="1.0"?>
<DICTIONARY>
<WORD>
<ADJECTIVE>beautiful</ADJECTIVE>
<MEANING>something that looks nice</MEANING>
<SYNONYM>gorgeous</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>clean</ADJECTIVE>
<MEANING>free of dirt</MEANING>
<SYNONYM>spotless</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>fancy</ADJECTIVE>
<MEANING>something that's decorative and not plain</MEANING>
<SYNONYM>elaborate</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>sparkling</ADJECTIVE>
<MEANING>to shine or glisten</MEANING>
<SYNONYM>shiny</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>expensive</ADJECTIVE>
<MEANING>very high-priced</MEANING>
<SYNONYM>costly</SYNONYM>
</WORD>
<WORD>
<ADJECTIVE>powerful</ADJECTIVE>
<MEANING>having or exerting great force</MEANING>
<SYNONYM>mighty</SYNONYM>
</WORD>
</DICTIONARY>
Here's my HTML file:
<html>
<body>
<xml id="dict" src="a.xml"></xml>
<table border="1" datasrc="#dict">
<tr>
<th>Adjective</th>
<th>Definition</th>
<th>Synonym</th>
</tr>
<tr>
<td><span datafld="ADJECTIVE"></span></td>
<td><span datafld="MEANING"></span></td>
<td><span datafld="SYNONYM"></span></td>
</tr>
</table>
</body>
</html>
Here's the problem: the table headings (adjective, definition, synonym) are displayed in every other row. They're not displayed only once at the top of the table. The table looks like this: