Am Mittwoch, 27. Oktober 2004 15:07 schrieb Ross Gardler:
> Stephan E. Schlierf wrote:
> > I'm still working on the creation of a pdf-file that is aggregated from a
> > group of documents.
> > With forrest 0.5.1 it works like a charm.
> >
> > With forrest 0.6 I get the following error message during a "forrest
> > site":
> >
> > ---snip---
> > X [0] linkmap.pdf BROKEN: java.lang.NullPointerException
> > ---snip---
>
> is there anything of significance in your logs?
>
> See build/webapp/WEB-INF/logs
Hm, in core.log you can find:
FATAL_E (2004-10-27) 15:22.31:668 [core.xslt-processor] (Unknown-URI)
Unknown-thread/TraxErrorHandler: Error in TraxTransformer:
file:/home/stephan/apache-forrest-0.6/src/core/context/skins/pelt/xslt/fo/../../../common/xslt/fo/document2fo.xsl;
Line 162; Column 59;
; SystemID:
file:/home/stephan/apache-forrest-0.6/src/core/context/skins/pelt/xslt/fo/../../../common/xslt/fo/document2fo.xsl;
Line#: 162; Column#: 59
javax.xml.transform.TransformerException: java.lang.NullPointerException
Line 162 in document2fo.xsl is
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
Just an idea:
Is it possible that Forrest tries to generate a pdf-file for the
linkmap.html ? In apache-forrest-0.6/status.xml I found an entry by NKB:
"Requesting linkmap.html Forrest now renders the site.xml file as a table of
contents."
Stephan
>
> Ross
>
> > With forrest 0.6 I use a minimalized sitemap.xmap:
> >
> > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> > <map:pipelines>
> > <map:pipeline internal-only="false">
> > <map:match pattern="**.xml">
> > <map:match pattern="workflow_doku.xml">
> > <map:mount uri-prefix="" src="workflow_doku.xmap"
> > check-reload="yes" />
> > </map:match>
> > </map:match>
> > </map:pipeline>
> > </map:pipelines>
> > </map:sitemap>
> >
> > My workflow_doku.xmap looks like:
> >
> > <?xml version="1.0"?>
> > <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> > <map:components>
> > <map:generators default="file"/>
> > <map:serializers default="html"/>
> > <map:transformers default="xslt">
> > <map:transformer name="cinclude"
> > src="org.apache.cocoon.transformation.CIncludeTransformer"/>
> > </map:transformers>
> > <map:matchers default="wildcard"/>
> > </map:components>
> >
> > <map:pipelines>
> > <map:pipeline>
> > <map:match pattern="*.xml">
> > <map:generate src="cocoon://abs-linkmap"/>
> > <map:transform type="xpath">
> > <map:parameter name="include"
> > value="/*[name()='site']/*[name()='wflow']"/>
> > </map:transform>
> > <map:transform src="resources/stylesheets/site2book.xsl" />
> > <map:transform
> > src="resources/stylesheets/aggregates/book2cinclude.xsl">
> > <map:parameter name="title" value="{conf:project-name}:
> > Workflows"/>
> > </map:transform>
> > <map:transform type="cinclude"/>
> > <map:transform
> > src="resources/stylesheets/aggregates/doc2doc-uniqueids.xsl"/>
> > <map:transform
> > src="resources/stylesheets/aggregates/docs2document.xsl"/>
> > <map:serialize type="xml"/>
> > </map:match>
> >
> > <map:match pattern="linkmap-*.*">
> > <map:generate src="cocoon://abs-linkmap" />
> > <map:transform
> > src="resources/stylesheets/aggregates/relativize-split-linkmap.xsl">
> > <map:parameter name="path" value="{1}.{2}" />
> > </map:transform>
> > <map:serialize type="xml"/>
> > </map:match>
> > </map:pipeline>
> > </map:pipelines>
> > </map:sitemap>
> >
> > Any ideas?
> > TIA,
> > Stephan
|