[EMAIL PROTECTED] wrote:
Dear List,
I have the following code in stylesheets/panelset2html.xsl:
<xsl:output method="html" version="4.01"
doctype-public="-//W3C//DTD HTML 4.01 Frameset//EN"
doctype-system="http://www.w3.org/TR/html4/frameset.dtd"/>
<snip/>
As far as I can tell, Cocoon is ignoring the <xsl:output>, and using
whatever is specified within the HTML Serializer configuration.
That's right. To understand why, you have to consider the two parts of
an XSL engine:
- the transformation part, defined by the xsl templates
- the serialization part, whose behavior is driven by <xsl:output>
The XSL transformer in Cocoon uses... the transformation part! As a
consequence, the <xsl:output> instruction is ignored.
The HTML serializer uses the serialization part of the same XSL engine,
using an identity transformation that converts SAX events to a byte
stream. This is where the doctype settings are taken into account.
You therefore have to define a different "frameset-html" serializer to
have the appropriate doctype.
Sylvain
--
Sylvain Wallez Anyware Technologies
http://bluxte.net http://www.anyware-tech.com
Apache Software Foundation Member Research & Technology Director
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]