cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonid Geller" <lgel...@feedroom.com>
Subject RE: File Generator and Compressed XML
Date Thu, 08 Mar 2007 20:05:38 GMT
The request is http://hostname/public_rss/foo_rssz.xml
foo_master.zip containing foo_master.xml is in 
C:\Dev\xml-syndication\xmlout

The pipeline looks like this:


<map:pipeline type="caching">
<map:match pattern="*_rssz.xml">
	<map:generate src="zip:///C:/Dev/xml-syndication/xmlout/{1}_master.zip!/{1}_master.xml"/>
	<map:transform src="{global:xslhome}/feedroom_master2rss.xsl">
		<map:parameter name="use-request-parameters" value="true"/>
		<map:parameter name="isPublic" value="1"/>
		<map:parameter name="mergeSubChannels" value="0"/>
	</map:transform>
	<map:serialize/>
</map:match>
</map:pipeline>

Thanks,

Leonid Geller

-----Original Message-----
From: Grzegorz Kossakowski [mailto:grek@tuffmail.com] 
Sent: Thursday, March 08, 2007 2:59 PM
To: users@cocoon.apache.org
Subject: Re: File Generator and Compressed XML

Leonid Geller napisaƂ(a):
> 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
>   
This error suggest some typo in your sitemap. Could please attach
relevant fragment where you use zip source?

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


______________________________________________________________________
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message