cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Froehlich" <g-froehl...@gmx.de>
Subject [c2] writing own generator
Date Sat, 28 Jul 2001 14:56:44 GMT
Hi,
I want to write my own generator. Which processes all xml files in one
directory
and outputs them all as one pdf-file.
Following configuration in the sitemap.xmap:
<map:match pattern="documents_pdf/documentation.pdf">
  <map:generate type="mygenerator" src="docs/xdocs/"/>
  <map:transform src="stylesheets/documents/root2pdf.xsl"/>
  <map:serialize type="fo2pdf"/>
</map:match>

Following problem:
I'm implementing the cachable interface. Know the problem
is that the generateKey() method wants the complete source
(/pathto/file.xml).
But my generator gets as source only the directory where
the files are(/pathto/).
In the generate() method I want to process all files in
that directory.

Because of that I get a NullPointer Exception in the
generateKey() method.

Do I completly wrong, can I make a workaround or can't I
implement the cachable interface in this case?

Cheers
Gerhard


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


Mime
View raw message