BB Unix Network Monitor - Message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: {bb} HTML table formatting



I'm not an HTML wizard but I do know quite a bit about SGML.  What DOCTYPE 
are you using?

HTML 3.2 == <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
HTML 4.0 (transitional) == <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 
Transitional//EN">

Both HTML 3.2 and HTML 4.0 appear to me (from looking at the DTDs) to 
support the PRE element within a TD element.

The full version of the HTML 3.2 standard is available at 
http://www.w3.org/TR/REC-html32 .  In case anyone really cares excerpts 
from the HTML 3.2 DTD follow (the comments are my own):

<!-- This is the definition for the table
       Tables contain TRs which contain THs and TDs (pretty standard)
       THs or TDs can contain the elements from the body.content entity -->
<!ELEMENT table - - (caption?, tr+)>
<!ELEMENT tr - O (th|td)*>
<!ELEMENT (th|td) - O %body.content>

<!-- The body.content entity (the one that is contained inside a TD
       This consists of many other entities  -->
<!ENTITY % body.content "(%heading | %text | %block | ADDRESS)*">

<!-- The block entity (the one that is included in the body.content entity)
       Notice the inclusion of the preformatted entity -->
<!ENTITY % block "P | %list | %preformatted | DL | DIV | CENTER | 
BLOCKQUOTE | FORM | ISINDEX | HR | TABLE">

<!-- The PRE tag is defined in a number of places but here is most of the 
collection
       The preformatted entity contains only the PRE tag
       The PRE tag includes the text entity excluding the elements defined 
in the
       pre.exclusiong entity -->
<!ENTITY % preformatted "PRE">
<!ENTITY % pre.exclusion "IMG|BIG|SMALL|SUB|SUP|FONT">
<!ELEMENT PRE - - (%text)* -(%pre.exclusion)>

At 12:54 PM 9/28/99 +1000, you wrote:
>One of my cow-orkers criticized BB's HTML output, so I thought I'd try
>patching BB so it passes the HTML 3.2 validator at
>http://validator.w3c.org.
>
>I've fixed the mis-matched start/end tags, etc but I still have a few
>problems and was hoping someone on this list might be able to help.
>
>The problem is using <PRE> inside a <TD> element in the "disk" column.
>Without the <PRE> the space-padded columns don't line up.
>
>Any HTML wizards like to help me out?
>
>(The afore-mentioned cow-orker uses the words "IE5" and "standard" in
>the same sentence. :-)
>
>
>Regards,
>Andrew Dalgleish
>
>-
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
>To unsubscribe from this list, or to subscribe to the bb-digest list
>send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
>subscribe bb-digest in the BODY of the message.

_______________________________________________________________
David Miller
ManTech Systems Engineering Corp.
   - Information Technology & Training Group
dmiller@mantech-itt.com
-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.


Home | Main Index | Thread Index