> When I transform my TEI-files to html, I get no DOCTYPE declaration
> at the top of the file (in tei-param.xsl.xd.html it says the defaults are
> "-//W3C//DTD HTML 4.0 Transitional//EN" and
> I've tried with
> <xsl:param name="doctypePublic">-//W3C//DTD HTML 4.0//EN</xsl:param>
> <xsl:param name="doctypeSystem">http://www.w3.org/TR/html4/strict.dtd</xsl:param>
> in the .xsl-file (where I've imported html/tei.xsl). The resulting
> file still just begins with <html lang="en">. Moreover, the
> following declarations in my .xsl-file work as intended:
> <xsl:param name="cssFile">../css/res.css</xsl:param>
> <xsl:param name="divOffset">1</xsl:param>
> <xsl:param name="numberHeadings">false</xsl:param>
> Am I missing something here? How do I get a doctype statement at the
> beginning of the output file?
Can you tell us a bit more about what you are actually doing? Which
version of which TEI stylesheet are you using for the transformation?
Which XSLT engine? Is the input P4 or P5?
The documentation at
does not seem to mention doctypePublic or doctypeSystem. However, all
four of the stylesheets I think you might be including (by importing
its parent tei.xsl) do declare these parameters with appropriate
defaults. They are:
I believe that these files from the TEI website should be
substantially, if not exactly, the same as the ones from the current
release tarball on Sourceforge and from the Debian package from
 Go to http://sourceforge.net/projects/tei/ and click on either
"Download > Download files" or on the green download box.
 Point your /etc/apt/sources.list file to
deb http://tei.oucs.ox.ac.uk/teideb/binary ./