ok so let's take the w3c example:
what if you have
<table>
<tr>
<td>Cost</td>
<td>Tax</td>
<td>Shipping</td>
<td>Total</td>
</tr>
<tr>
<td>$500</td>
<td>$5</td>
<td>$20</td>
<td>$525</td>
</tr>
</table>
and
<table>
<look>
<wood>Oak</wood>
<finish>Caramel</finish>
</look>
<pricing>
<basecost>$400</basecost>
<msrp>$500</msrp>
</pricing>
</table>
ohnoes! !!! teh table element means 2 different things!
so they say just add a namespace.
but why not just make the two different table elements children of two different elements, such as:
<xhtml>
<table>
<tr>
<td>Cost</td>
<td>Tax</td>
<td>Shipping</td>
<td>Total</td>
</tr>
<tr>
<td>$500</td>
<td>$5</td>
<td>$20</td>
<td>$525</td>
</tr>
</table>
</xhtml>
and
<furniture>
<table>
<look>
<wood>Oak</wood>
<finish>Caramel</finish>
</look>
<pricing>
<basecost>$400</basecost>
<msrp>$500</msrp>
</pricing>
</table>
</furniture>
what if you have
<table>
<tr>
<td>Cost</td>
<td>Tax</td>
<td>Shipping</td>
<td>Total</td>
</tr>
<tr>
<td>$500</td>
<td>$5</td>
<td>$20</td>
<td>$525</td>
</tr>
</table>
and
<table>
<look>
<wood>Oak</wood>
<finish>Caramel</finish>
</look>
<pricing>
<basecost>$400</basecost>
<msrp>$500</msrp>
</pricing>
</table>
ohnoes! !!! teh table element means 2 different things!
so they say just add a namespace.
but why not just make the two different table elements children of two different elements, such as:
<xhtml>
<table>
<tr>
<td>Cost</td>
<td>Tax</td>
<td>Shipping</td>
<td>Total</td>
</tr>
<tr>
<td>$500</td>
<td>$5</td>
<td>$20</td>
<td>$525</td>
</tr>
</table>
</xhtml>
and
<furniture>
<table>
<look>
<wood>Oak</wood>
<finish>Caramel</finish>
</look>
<pricing>
<basecost>$400</basecost>
<msrp>$500</msrp>
</pricing>
</table>
</furniture>
