Hi

yes, it looks like a stylesheet problem, but when I generate the same source
with xalan and the same xsl sheets its ok.

Also: I run junitreports with xsl stylesheet and the generation with
noframes works quite well, with frames it does not.

regards
erik

-----Original Message-----
From: David Crossley [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 7:33 AM
To: [EMAIL PROTECTED]
Subject: problem with Cocoon2 and Docbook xsl


This looks like a problem with the DocBook stylesheets
(the log says chunker.xsl) ...
> java.lang.RuntimeException: ElemTemplateElement error:
>  Found more than one template named: anchor

You could hack the stylesheet as a workaround to
comment-out the duplicate template. If that works then
please report this to the DocBook maintainers.

We would love to hear a dot-point summary of the steps
that you needed to get DocBook processing happening.

--David

> Subject:  problem with Cocoon2 and Docbook xsl
> From:     "Erik Stunkat" <[EMAIL PROTECTED]>
> Date:     2001-11-08 16:03:16
>
> 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]>


---------------------------------------------------------------------
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