You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2003/07/29 20:03:04 UTC
DO NOT REPLY [Bug 15806] -
Doctype is added twice
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15806>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15806
Doctype is added twice
vgritsenko@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WORKSFORME
Version|2.0.4 |Current CVS 2.0
------- Additional Comments From vgritsenko@apache.org 2003-07-29 18:03 -------
WORKSFORME with 2.0.5-dev. Changed sample sitemap:
<map:serializer logger="sitemap.serializer.html" mime-type="text/html"
name="html4" pool-grow="4" pool-max="32" pool-min="4"
src="org.apache.cocoon.serialization.HTMLSerializer">
<buffer-size>1024</buffer-size>
<doctype-public>-//W3C//DTD HTML 4.01 Transitional//EN</doctype-public>
<doctype-system>http://www.w3.org/TR/html4/strict.dtd</doctype-system>
</map:serializer>
Changed hello.html sample:
<map:match pattern="hello.html">
<map:generate src="docs/samples/hello-page.xml"/>
<map:transform src="context://stylesheets/page/simple-page2html.xsl">
<map:parameter name="servletPath" value="{request:servletPath}"/>
<map:parameter name="sitemapURI" value="{request:sitemapURI}"/>
<map:parameter name="contextPath" value="{request:contextPath}"/>
<map:parameter name="file" value="docs/samples/hello-page.xml"/>
<map:parameter name="remove" value="{0}"/>
</map:transform>
<map:serialize type="html4"/>
</map:match>
Result:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<!-- CVS: $Id: hello-page.xml,v 1.1 2003/03/09 00:05:30 pier Exp $ --><html>
<link title="Default Style" href="/cocoon/samples/samples.css" rel="stylesheet">
...
If you are using Saxon (it has this bug some time ago) make sure you have new
version.