January 2002
Intermediate to advanced
480 pages
11h 5m
English
I can process the style sheets without any problems, but the output HTML is invalid. Empty elements are given XML-style abbreviated closes like <this />, or the <!DOCTYPE > is incorrect.
First of all, be sure you have the following declaration in your style sheet:
<xsl:output method=”html” />
This will enable HTML output mode, producing valid HTML instead of XHTML.
If a <!DOCTYPE > is important in the output, the following declaration should be used:
<xsl:output method=”html” doctype-public=”-//W3c//DTD HTML 4.01//EN”
doctype-system=”http://www.w3.org/TR/html4/strict.dtd” /> I’m writing XSLT that creates an output HTML document with a <SCRIPT> ...
Read now
Unlock full access