On September 5, 2004 12:38 pm, Freeloader Groups wrote:
> Hi All,
> IÂm tying to clean up my HTML, first step add the proper DOCTYPE
> declaration!
>
> Problem is I canÂt see to get AxKit to output the proper directive. I
> currently have an xml:output within my top level style sheet that looks
> something like;
>
> <xsl:output method="xml" version="1.0" media-type="text/html"
>  doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
>  doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>

I have the following in one of my stylesheets:

<xsl:output method="html" indent="no" encoding="iso-8859-1" 
doctype-public="-//W3C//DTD HTML 4.01 Strict//EN" 
doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>

And it outputs the DOCTYPE properly in its output:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" 
"http://www.w3.org/TR/html4/strict.dtd";>

The important thing, however, is this is the last stylesheet in the pipeline.  
That may be what your problem is.  Other than that, it should work.

-- 
Michael A. Nachbaur <[EMAIL PROTECTED]>
http://nachbaur.com/pgpkey.asc

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to