This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problem with Cocoon2 and Docbook xsl



Comment out the template with attribute match="anchor" and name="anchor"
in xref.xsl file located at your_docbook_dir/html directory. I am not sure
whether this affects your XML processing or not because I did not use xref
element in my XML document.

Sidney Lu
Academia Sinica Computing Centre


On Fri, 9 Nov 2001, David Crossley wrote:

> 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" <eriks@poet.de>
> > 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
> > eriks@poet.de
>
> ---------------------------------------------------------------------
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>
>


----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]