You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by g4 <ja...@root10.net> on 2003/08/26 15:45:12 UTC
xml-document not defined
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"
Many thanks
Jason Lane
Re: xml-document not defined
Posted by Jeff Turner <je...@apache.org>.
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">
<cdata-section-elements>source</cdata-section-elements>
<doctype-public>-//APACHE//DTD Documentation V1.2//EN</doctype-public>
<doctype-system>document-v12.dtd</doctype-system>
</map:serializer>
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?
--Jeff
> Many thanks
>
> Jason Lane