Grzegorz,
Thanks for the info. I reviewed the link, sounds exactly like what I need.
However, I am running into an error while trying to use it in 2.1.10 (partial
stack trace below).
I obviously specified the protocol as 'zip:' and the path as
mysource.zip!/mysource.xml
My assumption is that FileGenerator, when resolving the input source would get
an instance of ZipSource... Not sure if that's correct though.
Any help would be appreciated!
Thanks,
-Leonid
java.net.MalformedURLException: unknown protocol: zifile
at java.net.URL.<init>(URL.java:574)
at java.net.URL.<init>(URL.java:464)
at java.net.URL.<init>(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown
Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown
Source)
at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:315)
at org.apache.excalibur.xml.impl.JaxpParser.parse(JaxpParser.java:334)
at
org.apache.cocoon.components.source.SourceUtil.parse(SourceUtil.java:326)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:116)
...
-----Original Message-----
From: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 08, 2007 12:04 PM
To: [email protected]
Subject: Re: File Generator and Compressed XML
Leonid Geller napisaĆ(a):
>
> Has anyone tried to extent org.apache.cocoon.generation.FileGenerator
> to process compressed XML source files?
>
>
>
> Our source XML feeds are getting into tens of megabytes, and I'd like
> to reduce I/O overhead by compressing them to zip/gzip archives prior
> to making them available to Cocoon.
>
>
>
> Before I dive into my own implementation, wanted to find out if one
> already exists or if someone can give me a few clues on how to
> proceed. I would obviously prefer to leverage most of
> org.apache.excalibur.source package and not to replace resolver or
> contentHandler implementation.
>
>
>
I would suggest to take a look on this:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/source/impl/ZipSourceFactory.html
--
Grzegorz Kossakowski
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]