[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Newbie encoding query

Subject: Re: Newbie encoding query
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 4 Dec 2002 13:30:03 -0700 (MST)
Re:  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. And sure, a browser will let you call anything
HTML and it will try its best to render it, no matter how invalid the document
is, but that doesn't mean that it's optional. 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.

Mike

-- 
  Mike J. Brown   |  http://skew.org/~mike/resume/
  Denver, CO, USA |  http://skew.org/xml/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.