[XSL-LIST Mailing List Archive Home]
Re: [xsl] Newbie encoding query
>Perhaps in HTML there is such
>a thing as an implicit (tagless) element?
I think you nailed it.
My recollection of SGML is that this element's tags
(<!ELEMENT HEAD O O) are ommisible, not that the
element is optional. The element is still there.
--- Mike Brown <mike@xxxxxxxx> wrote:
> Passin, Tom wrote:
> > >From the DTD in the HTML 4.01 Rec -
> > <!ELEMENT HEAD O O (%head.content;) +(%head.misc;)
> -- document head -->
> > <!ELEMENT TITLE - - (#PCDATA) -(%head.misc;) --
> document title -->
> > <!ELEMENT HTML O O (%html.content;) -- document
> root element -->
> > <!ELEMENT BODY O O (%block;|SCRIPT)+ +(INS|DEL) --
> document body -->
> > Very clear, right? Those tags are optional.
> Aren't you glad you don't
> > have to design the parser?
> Heh. OK, I was wrong.
> However, the prose in section 7.1 says
> An HTML 4 document is composed of three parts:
> 1. a line containing HTML version information,
> 2. a declarative header section (delimited by the
> HEAD element),
> 3. a body, which contains the document's actual
> content. The body may be
> implemented by the BODY element or the FRAMESET
> White space (spaces, newlines, tabs, and comments)
> may appear before or
> after each section. Sections 2 and 3 should be
> delimited by the HTML
> I see we're back in the should/may/must discussion,
> but at the very least
> it sounds like HEAD is not optional, based on that
> prose, and it sounds like
> one of either BODY or FRAMESET are required.
> Of course, a bit further down, it says that that
> head tags are not required.
> Perhaps in HTML there is such a thing as an implicit
> (tagless) element? :)
> Mike J. Brown | http://skew.org/~mike/resume/
> Denver, CO, USA | http://skew.org/xml/
> XSL-List info and archive:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
- RE: [xsl] Newbie encoding query, (continued)
- Passin, Tom - Wed, 4 Dec 2002 11:30:23 -0500
- Passin, Tom - Wed, 4 Dec 2002 15:59:19 -0500
- Mike Brown - Wed, 4 Dec 2002 15:48:04 -0700 (MST)
- Bryan Schnabel - Wed, 4 Dec 2002 14:56:43 -0800 (PST) <=
- David Carlisle - Thu, 5 Dec 2002 00:53:02 GMT
- Martinez, Brian - Wed, 4 Dec 2002 14:44:22 -0700
- Passin, Tom - Wed, 4 Dec 2002 18:16:39 -0500
- DPawson - Thu, 5 Dec 2002 09:00:57 -0000