LISTSERV mailing list manager LISTSERV 15.5

Help for HTML-WG Archives


HTML-WG Archives

HTML-WG Archives


View:

Next Message | Previous Message
Next in Topic | Previous in Topic
Next by Same Author | Previous by Same Author
Chronologically | Most Recent First
Proportional Font | Monospaced Font

Options:

Join or Leave HTML-WG
Reply | Post New Message
Search Archives


Subject:

Further on COLGROUP

From:

Terry Allen <[log in to unmask]>

Date:

Mon, 22 Jan 1996 16:17:56 PST

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (109 lines)



I omitted part of the explanation by error. Because colgroup is *,
double omission only appears to work. The workaround is:

   <!ELEMENT table - - (caption?, colgroup, colgroup*, thead?, tfoot?, tbody+)>

(inserting a required colgroup). This doesn't require any COLs actually
to exist, because colgroup's contents are col*. And it doesn't screw up
any counting mechanism, because none applies to colgroup. If that change
is made the following is valid:

<table>
<col>
<tbody><tr><td></td></tr></tbody>
</table>

for the DTD (with PCDATA replacing some p.e.s)

[ note <!ELEMENT colgroup o O (col*)>
 ]

   <!ENTITY % attrs
          "id ID #IMPLIED -- element identifier --
           class NAMES #IMPLIED -- for subclassing elements --
           style CDATA #IMPLIED -- rendering annotation --
           lang NAME #IMPLIED -- as per RFC 1766 --
           dir (ltr|rtl) #IMPLIED -- I18N text direction --">
   <!ENTITY % Frame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
   
   <!ENTITY % Rules "(none | groups | rows | cols | all)">
           
   <!ENTITY % Where "(left|center|right)">
   
   <!ENTITY % cell.halign
           "align (left|center|right|justify|char) #IMPLIED
            char CDATA #IMPLIED -- alignment char, e.g. char=':' --
            charoff CDATA #IMPLIED -- offset for alignment char --" >
   
   <!ENTITY % cell.valign
           "valign (top|middle|bottom|baseline) #IMPLIED" >
   
   <!ELEMENT table - - (caption?, colgroup, colgroup*, thead?, tfoot?, tbody+)>
   <!ELEMENT caption - - (#PCDATA)>
   <!ELEMENT thead - O (tr+)>
   <!ELEMENT tfoot - O (tr+)>
   <!ELEMENT tbody O O (tr+)>
   <!ELEMENT colgroup o O (col*)>
   <!ELEMENT col - O EMPTY>
   <!ELEMENT tr - O (th|td)+>
   <!ELEMENT (th|td) - O (#PCDATA)>
   
   <!ATTLIST table -- table element --
           %attrs; -- id, lang, style, dir and class --
           align %Where; #IMPLIED -- table position relative to window --
           width CDATA #IMPLIED -- table width relative to window --
           cols NUMBER #IMPLIED -- used for immediate display mode --
           border CDATA #IMPLIED -- controls frame width around table --
           frame %Frame; #IMPLIED
           rules %Rules; #IMPLIED -- rulings between rows and cols --
           cellspacing CDATA #IMPLIED -- spacing between cells --
           cellpadding CDATA #IMPLIED -- spacing within cells -- >
   
   <!ENTITY % Caption "(top|bottom|left|right)">
   <!ATTLIST caption -- table caption --
           %attrs; -- id, lang, style, dir and class --
           align %Caption; #IMPLIED -- relative to table -- >
   <!ATTLIST colgroup
           %attrs; -- id, lang, style, dir and class --
           span NUMBER 1 -- default number of columns in group --
           width CDATA #IMPLIED -- default width for enclosed COLs --
           %cell.halign; -- horizontal alignment in cells --
           %cell.valign; -- vertical alignment in cells -- >
   <!ATTLIST col -- column groups and properties --
           %attrs; -- id, lang, style, dir and class --
           span NUMBER 1 -- number of columns spanned by group --
           width CDATA #IMPLIED -- column width specification --
           %cell.halign; -- horizontal alignment in cells --
           %cell.valign; -- vertical alignment in cells -- >
   <!ATTLIST (thead|tbody|tfoot) -- table section --
           %attrs; -- id, lang, style, dir and class --
           %cell.halign; -- horizontal alignment in cells --
           %cell.valign; -- vertical alignment in cells -- >
   
   <!ATTLIST tr -- table row --
           %attrs; -- id, lang, style, dir and class --
           %cell.halign; -- horizontal alignment in cells --
           %cell.valign; -- vertical alignment in cells -- >
   
   <!ATTLIST (th|td) -- header or data cell --
           %attrs; -- id, lang, style, dir and class --
           axis CDATA #IMPLIED -- defaults to cell content --
           axes CDATA #IMPLIED -- list of axis names --
           nowrap (nowrap) #IMPLIED -- suppress word wrap --
           rowspan NUMBER 1 -- number of rows spanned by cell --
           colspan NUMBER 1 -- number of cols spanned by cell --
           %cell.halign; -- horizontal alignment in cells --
           %cell.valign; -- vertical alignment in cells -- >

Regards,

--
Terry Allen ([log in to unmask]), Online Books Editor, Songline Studios
              affiliated with O'Reilly & Associates, Inc.
A Davenport Group sponsor. See http://www.ora.com/davenport/README.html
              'Tis a poor workman who blames his tools.




Back to: Top of Message | Previous Page | Main HTML-WG Page

Permalink



LISTSERV.HEANET.IE

CataList Email List Search Powered by the LISTSERV Email List Manager