You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by da...@no-log.org on 2004/02/27 14:01:41 UTC

double DOCTYPE with xalan redirect

Using xalan Java 2.5.2, I get two HTML DOCTYPE declarations when using a
code like that:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" xmlns:xalanredirect="http://xml.apache.org/xalan/redirect"
extension-element-prefixes="xalanredirect">
<xsl:output method="html" indent="yes" doctype-public="-//W3C//DTD HTML
4.01 Transitional//EN" encoding="ISO-8859-1"/>

[...]

<xalanredirect:write select="'example.html'">
<html>
[...]
</html>
</xalanredirect:write>

anybody knows of a workaround or a different version of xalan to use to
avoid this bug ?