Re: [xsl] specifying html doctypes using xslt literal result stylesheets

Subject: Re: [xsl] specifying html doctypes using xslt literal result stylesheets
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Tue, 21 Oct 2003 17:13:17 -0400

At 04:35 PM 10/21/2003, you wrote:
I've been searching around the web but can't find
an answer to what I assume is a FAQ:

How do you specify an HTML doctype when using the
XSLT "Literal Result Element as Stylesheet"

This feature of the language isn't actually all that widely used in my experience (it's almost never asked about here, which indicates either it's rarely used, or works so perfectly no one ever asks about it) -- hence, not such a FAQ....

You need an HTML DTD or else browsers won't render
XHTML transitional output correctly....

If you can't do this, then the HTML examples in
section 2.3 of the XSLT 1.0 spec are *very*

Well, since XSLT 1.0 was finished and made it to Rec in 1999, and XHTML first saw the light in 2000 ... and browsers have taken even longer to catch up ... it's perhaps forgiveable if XSLT has failed to anticipate all the challenges of deploying XHTML.

Sorry that's not much of a help.


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

XSL-List info and archive:

Current Thread