W3C home > Mailing lists > Public > spec-prod@w3.org > January to March 2001

Re: Extra table markup (was Re: BOF meeting to discuss XHTML and spec-prod at the W3C working group event at the end of February?)

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 16 Jan 2001 18:50:48 GMT
Message-Id: <200101161850.SAA11240@penguin.nag.co.uk>
To: lesch@w3.org
CC: pgrosso@arbortext.com, wendy@w3.org, spec-prod@w3.org, reagle@w3.org, danc@w3.org, ij@w3.org

> Removing the optional elements thead and tbody 
I'd rather leave these in, seems to be cleaner markup than just relying
on th to distinguish the head.

> and the default values rowspan="1" colspan="1"
> ...  MathML, and XSLT are still in development and exhibit those quirks.)

I just looked into this for MathML which uses a slightly modified
xml-spec DTD and stylesheets which have diverged but have their origins
in Eduardo Gutentag's and James Clark's original xml-spec stylesheets.

The DTD has

        rowspan         NMTOKEN         "1"

so that after DTD processing every th has a rowspan attribute.
The stylesheet copies most attributes from the source to the output
(as the xmlspec table model is largely similar to HTMLs)

  <xsl:copy-of select="@bgcolor|@rowspan|@colspan|@align|@valign"/>

The stylesheet could special case this

  <xsl:copy-of select="@bgcolor|@rowspan[1 != .]|@colspan[1 != .]|@align|@valign"/>

for example. (Maybe I'll do that anyway) but an alternative would be for
the DTD to declare it as #IMPLIED rather than giving a default.


This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
Received on Tuesday, 16 January 2001 13:51:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:42:16 UTC