Subject: RE: [xsl] Newbie encoding query From: "Martinez, Brian" <brian.martinez@xxxxxxxx> Date: Wed, 4 Dec 2002 14:44:22 -0700 |
> From: Mike Brown [mailto:mike@xxxxxxxx] > Sent: Wednesday, December 04, 2002 1:30 PM > Subject: Re: [xsl] Newbie encoding query > > > Passin, Tom wrote: > > [Mike Brown] > > > > > I suspect that your XSLT processor did not do this because > > > you did not put a <head> in your document, which is an HTML > > > error anyway. Fix that. All HTML > > > documents require a head, title and body: > > > > > > > Yes, but the open and close tags of the html, head and body > elements are > > optional (the title element is mandatory and so are its > close and open > > tags, although I have never seen a browser that complains > about it being > > missing). > > How do you figure that <html>, <head>, and <body> are > optional? The HTML 4.0 > spec seems to say otherwise. Actually, it's pretty clear that they are optional, even under the strict DTD: http://www.w3.org/TR/html4/struct/global.html > More > importantly, for an XSLT > processor to know where and how to insert a <meta> when > there's no <head> is > asking a bit much. True enough--and the processors I've worked with (Xalan/Saxon/MSXML 4.0) won't try to read the programmer's mind, either. Saxon will cheerfully spit out tags that are legal according to the HTML spec but represent nothing close to a valid HTML document. b. | brian martinez brian.martinez@xxxxxxxx | | senior gui programmer 303.708.7248 | | trip network, inc. fax 303.790.9350 | | 6436 s. racine cir. englewood, co 80111 | | http://www.cheaptickets.com/ http://www.trip.com/ | XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Newbie encoding query, David Carlisle | Thread | RE: [xsl] Newbie encoding query, Passin, Tom |
[xsl] following-sibling question, Mani Malarvannan | Date | Re: [xsl] <xsl:eval> equivalent pro, David Carlisle |
Month |