Hi all,
I tested your suggestions and this is what I have ...
<map:pipeline>
<map:match pattern="test/*/**.xml">
<map:read
src="jar:http://web/implements/{1}!/{2}.xml" mime-type="text/xml"/>
</map:match>
</map:pipeline>
<map:pipeline>
<map:match pattern="*.zip">
<map:read src="{1}.zip"/>
</map:match>
<map:match pattern="*.sxw">
<map:read src="{1}.sxw"
mime-type="application/zip"/>
</map:match>
</map:pipeline>
This works !! I get to see the XML in my browser.
HOWEVER ...
When I replace the <map:read> with <map:generate> for the content.xml within
my file, Cocoon give me an error.
message File "jar:http://web/implements/test.sxw!/office.dtd" not found.
description org.apache.cocoon.ProcessingException: Failed to execute
pipeline.: org.xml.sax.SAXParseException: File
"jar:http://web/implements/test.sxw!/office.dtd" not found.
When I open up the file with Ark, the DTD is indeed not in the file, but for
generation within cocoon, it seems to have to be there ....
Now, how can I bypass that, how can I tell cocoon to generate the file without
parsing it with the DTD ??
Any help would be appreciated
> Good point, Upayavira!
>
> I've taken your suggestion and implemented an example:
> http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample
>
> Cheers!
>
> Con
>
> > > Basically, it's the ZipGenerator I need with some extras, but before
> > > writing the code myself, I was wondering whether someone had done it
> > > before me.
> >
> > Asking a similar question, I pointed someone at an example in
> > the Langham/Ziegler
> > book (a zip source). Someone else then made a point that the
> > jar: protocol, built into
> > the JDK, can read Zip files. So check out the accessing files
> > with jar: in the JDK and
> > let us know where you get to!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Met vriendelijke groeten,
Kind regards,
Bien � vous,
Yves Vindevogel
Implements
Kempische Steenweg 206 -- 3500 Hasselt -- Belgium
Phone/Fax: +32 (11) 43.55.76 -- Mobile: +32 (478) 80.82.91
Mail: [EMAIL PROTECTED] -- www.implements.be
Quote: The winner never says participating is more important than winning.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]