> 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
> "http://www.w3.org/TR/html4/loose.dtd").
> 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
http://www.tei-c.org/release/doc/tei-p5-xsl/xsltdoc/latex/tei-param.xsl.xd.html
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:
http://www.tei-c.org/release/xml/tei/stylesheet/html/tei-param.xsl
http://www.tei-c.org/release/xml/tei/stylesheet/xhtml/tei-param.xsl
http://www.tei-c.org/release/xml/teip4/stylesheet/html/tei-param.xsl
http://www.tei-c.org/release/xml/teip4/stylesheet/xhtml/tei-param.xsl
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[1] and from the Debian package from
Sebastian's server[2].
Notes
-----
[1] Go to http://sourceforge.net/projects/tei/ and click on either
"Download > Download files" or on the green download box.
[2] Point your /etc/apt/sources.list file to
deb http://tei.oucs.ox.ac.uk/teideb/binary ./
|