cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: How to switch to another resource if one resource is not available?
Date Sat, 27 Jul 2002 03:47:02 GMT
> From: Joern_Hoos@notes.uni-paderborn.de [mailto:Joern_Hoos@notes.uni-
> 
> 
> Finally got it! The {1} vs. {../1} thing was a little tricky to find
out.
> BTW: If both (jpg and svg) exist,  though both actions should be
taken,
> cocoon seems to prefer the svg. How is the conflict resoveld? Is any

First encountered

> <map:serialize> or <map:read> final and the rest ignored?

And execution of the sitemap stops. Yes.


Vadim


>        <map:match pattern="images/**.jpg">
>           <map:act type="resource-exists">
>             <map:parameter name="url" value="images/{1}.svg"/>
>             <map:generate src="images/{../1}.svg"/>
>             <map:serialize type="svg2jpeg"/>
>           </map:act>
>           <map:act type="resource-exists">
>             <map:parameter name="url" value="images/{1}.jpg"/>
>             <map:read src="images/{../1}.jpg" mime-type="image/jpeg"/>
>           </map:act>
>        </map:match>
> 
> 
> Joern


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message