Hi,

I am trying to run Cocoon with xml and docbook.

Win 2000
JDK 1.3.1
tomcat 4
cocoon 2 rc

Here is my sitemap: (stylesheets from Norman Walsh)
 <map:match pattern="ess.html">
    <map:generate src="docs/samples/ess/ess3.xml"/>
    <map:transform src="stylesheets/docbook/html/docbook.xsl"/>
    <map:serialize type="html"/>
   </map:match>

here the sample.xml
<sample name="ess" href="ess.html">
    should start ess xml conversion
   </sample>

catalog.properties file:
#
catalogs=C:/web/tomcat/webapps/cocoon/stylesheets/docbookxml/docbook.cat
# pr

Head of my xml file (it?s valid)

<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
<book><title>eSS 5 Internal Documentation</title>
<bookinfo>


and here is the log file:

DEBUG   (2001-11-08) 16:52.37:598   [cocoon  ] (/cocoon/simple.html)
HttpProcessor[8080][4]/URLFactoryImpl: Making URL from
file:/C:/web/tomcat/webapps/cocoon/stylesheets/docbook/html/titlepage.templa
tes.xsl
DEBUG   (2001-11-08) 16:52.37:969   [cocoon  ] (/cocoon/simple.html)
HttpProcessor[8080][4]/URLFactoryImpl: Making URL from
file:/C:/web/tomcat/webapps/cocoon/stylesheets/docbook/html/pi.xsl
DEBUG   (2001-11-08) 16:52.37:999   [cocoon  ] (/cocoon/simple.html)
HttpProcessor[8080][4]/URLFactoryImpl: Making URL from
file:/C:/web/tomcat/webapps/cocoon/stylesheets/docbook/html/ebnf.xsl
DEBUG   (2001-11-08) 16:52.38:069   [cocoon  ] (/cocoon/simple.html)
HttpProcessor[8080][4]/URLFactoryImpl: Making URL from
file:/C:/web/tomcat/webapps/cocoon/stylesheets/docbook/html/chunker.xsl
ERROR   (2001-11-08) 16:52.38:149   [cocoon  ] (/cocoon/simple.html)
HttpProcessor[8080][4]/TraxTransformer: Problem in getTransformer:
org.apache.cocoon.ProcessingException: Error in creating Transform Handler:
java.lang.RuntimeException: ElemTemplateElement error: Found more than one
template named: anchor
        at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:178)
        at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandler(XS
LTProcessorImpl.java:111)
        at
org.apache.cocoon.transformation.TraxTransformer.setConsumer(TraxTransformer
.java:238)
        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.connectPipeline(C
achingEventPipeline.java:356)
        at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:210)
        at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:364)


At least the transforming works with Junit generated xml files,

any ideas??

Erik Stunkat
QA
POET Software
Hamburg, Germany
+49(0)40 60990-303
[EMAIL PROTECTED]


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to