cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrien Guillon <gu...@dainty.ca>
Subject Re: ZipFileSerializer After XInclude Throws NullPointerException
Date Thu, 31 May 2007 15:35:37 GMT
Hi Joerg,

1) This resulted in the same error when I configured the pipeline like so:

        <map:match pattern="simple.zip">
            <map:generate src="simple_xi.xml"/>
            <map:transform type="xinclude"/>
            <map:serialize type="zip"/>
        </map:match>

        <map:match pattern="simple.xml">
            <map:read type="resource" src="simple.xml" mime-type="text/xml"/>
        </map:match>

2)  I changed the XInclude to this:


<?xml version="1.0" encoding="ISO-8859-1"?>
<zip:archive xmlns:zip="http://apache.org/cocoon/zip-archive/1.0" 
xmlns:xi="http://www.w3.org/2001/XInclude" >
 <zip:entry name="content.xml" serializer="xml">
  <xi:include href="simple.xml"/>
 </zip:entry>
</zip:archive>

and removed simple.xml from the pipeline... I get the same result.

Thanks.

AJ




> Hello Adrien,
>
> can you try 1. to use a reader for simple.xml pipeline instead of
> generator + serializer, 2. to include simple.xml directly instead of via
> cocoon pipeline?
>
> Joerg




Mime
View raw message