forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <>
Subject Re: xml-document not defined
Date Wed, 27 Aug 2003 08:56:51 GMT
On Tue, Aug 26, 2003 at 02:45:12PM +0100, g4 wrote:
> Hi list,
> My project successfully validated etc... But when I fire up the webapp 
> I get:
> Type 'xml-document' is not defined for 'serialize' at 
> file:/usr/local/tomcat5/webapps/Conservatories/forrest.xmap:200:51
> I don't know where this has crept in from. I though it should just be 
> "xml"

Juan replaced 'xml' with 'xml-document' in all the subsitemaps, so it
needs to be declared in your (overridden) sitemap.xmap thusly:

<map:serializer name="xml-document" mime-type="text/xml" src="org.apache.cocoon.serialization.XMLSerializer">
  <doctype-public>-//APACHE//DTD Documentation V1.2//EN</doctype-public>

I'm not sure if this is a good idea.  Most projects are still using
doc-v11.  I'm using doc-v20a.  What is the benefit of adding a DOCTYPE
declaration to our intermediate XML?


> Many thanks
> Jason Lane

View raw message