Hi,

1- Verify that xindice returns a valid xml file. Using a pipeline as this:

<map:match pattern="*.pdf.xindice.test.xml">
<map:generate src="xmldb:xindice://localhost:8888/db/pages/#/[EMAIL PROTECTED]'{1}']"/>
       <map:serialize type="xml"/>
   </map:match>

2-Make sure you xslt tranformation works and produce valid xsl-fo code:

 <map:match pattern="*.pdf.xslt.test.xml">
<map:generate src="xmldb:xindice://localhost:8888/db/pages/#/[EMAIL PROTECTED]'{1}']"/>
           <map:transform src="resources/xslt/text.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
             </map:transform>
       <map:serialize type="xml"/>
   </map:match>

3-If both pipelines returns valid code, then it can be a fop error. There are some constructions that fop does not support [1]

BTW, wich cocoon version are you using.

Best Regards,

Antonio Gallardo.

[1] - http://xmlgraphics.apache.org/fop/compliance.html

Mike Casey wrote:

Hi guys,

I am currently trying to get the pdf serializer to work and am having a rather large amount of difficulty.

My serializer in the sitemap is declared as the default

<map:serializer logger=" sitemap.serializer.fo2pdf" mime-type="application/pdf" name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer">
    </map:serializer>

becasue I am not interested in adding any extra configuration files.

My pipeline when calling the pdf is
  <map:match pattern="*.pdf">
<map:generate src="xmldb:xindice://localhost:8888/db/pages/#/[EMAIL PROTECTED]'{1}']"/>
            <map:transform src="resources/xslt/text.xslt">
<map:parameter name="contextPath" value="{request:contextPath}"/>
              </map:transform>
        <map:serialize type="fo2pdf"/>
    </map:match>

However I get the following error

*java.lang.NullPointerException*
context://resources/xslt/text.xslt - 0:0        //


*Failed to process pipeline*
context://resources/xslt/text.xslt - 0:0        /[TransformerException]/
context://sitemap.xmap - 806:39         /<map:serialize type="fo2pdf">/
context://sitemap.xmap - 803:53         /<map:transform>/
context://sitemap.xmap - 802:87         /<map:generate>/


This has been bugging me for a couple of days considering I thought it would be rather straight foward to used the pdf serializer. I have tried adding a config file but that did not alter the error. If anyone could point me in the right direction I would be more that grateful

Regards

Mike Casey
NZ



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