The Netscape extensions to OL (ordered lists) look useful, but are
unfortunately ILLEGAL as SGML.
This is because SGML doesn't differentiate "i" from "I" and doesn't
permit duplicate NAME tokens for attribute values (regardless of
attribute name). The sgmls parser gives the following error message:
sgmls: SGML error at html3.dtd, line 498 in declaration parameter 24:
Group token 3: duplicate name or name token "I" ignored
sgmls: SGML error at html3.dtd, line 498 in declaration parameter 24:
Group token 5: duplicate name or name token "A" ignored
The following is my current suggestion for HTML 3.0. It gives better
control than the Netscape extensions, is legal SGML and based on the
tried and tested DocBook DTD. I have also added a list header element
as this is needed for compatability with ICADD, following Yuri Rubinsky's
recommendations. The style attributes would also be controllable via
linked style sheets, and I am participating in the dsssl-lite discussions
to see what can be achieved in the short term on this.
<!ELEMENT (OL|UL) - - (LH?, LI+)>
<!ENTITY % ol.li "arabic|upperalpha|loweralpha|upperroman|lowerroman">
<!ATTLIST OL
%attrs;
%needs; -- for control of text flow --
type (%ol.li) #IMPLIED -- rendering style --
inherit (inherit) #IMPLIED -- prefix from parent, eg "3.1.b" --
continue (continue) #IMPLIED -- don't restart sequence number --
start NUMBER #IMPLIED -- starting sequence number --
compact (compact) #IMPLIED -- reduced interitem spacing --
>
<!ENTITY % ul.li "disc|circle|square|custom">
<!ATTLIST UL
%attrs;
%needs; -- for control of text flow --
plain (plain) #IMPLIED -- suppress bullets --
wrap (vert|horiz|none) none -- multicolumn list style --
type (%ul.li) #IMPLIED -- bullet style --
bullet (%URI;) #IMPLIED -- default bullet graphic --
base IDREF #IMPLIED -- for resolving relative links --
urn CDATA #IMPLIED -- universal resource number --
compact (compact) #IMPLIED -- reduced interitem spacing --
>
<!ELEMENT LH - O (%text;)+ -- list header -->
<!ATTLIST LH %attrs;>
<!ELEMENT LI - O %flow; -- list item -->
<!ATTLIST LI
%attrs;
%needs; -- for control of text flow --
bullet (%URI;) #IMPLIED -- custom bullet graphic --
base IDREF #IMPLIED -- for resolving relative links --
urn CDATA #IMPLIED -- universal resource number --
label CDATA #IMPLIED -- custom label --
skip NUMBER #IMPLIED -- skip seq nums for missing items --
>
The documentation for the initial draft of HTML 3.0 is nearly complete
and will be browsable over the Web. This is for discussion purposes and
will evolve over the next few months as we bash it into shape.
-- Best wishes,Dave Raggett ----------------------------------------------------------------------------- Hewlett Packard Laboratories email: [email protected] Filton Road, Stoke Gifford tel: +44 272 228046 Bristol BS12 6QZ fax: +44 272 228003 United Kingdom