Re: ingratiate a table in another table : xhtml

Peter wrote:

> I got error for using a table in another table.
[...]
> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN"
> "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">

You're using the XHTML Mobile 1.2 DTD, which has "basic tables" only, i.e. a 
limited subset of the (X)HTML table concept. In particular, nested tables 
are disallowed.

> What is the cause for this error isn't it correct to ingratiate a
> table in another table in xhtml or is it a problem with the
> validation check?

It's a problem with the DTD. The XHTML 1.0 DTDs allow nested tables.

-- 
Yucca, http://www.cs.tut.fi/~jkorpela/ 

Received on Monday, 25 April 2011 18:55:09 UTC