cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DAVIGNON Andre - CETE NP/DIODé/PANDOC" <Andre.Davig...@developpement-durable.gouv.fr>
Subject Re: How to Cinclude nothing when a file doesn't exist or have alternative map:generate files
Date Fri, 14 Nov 2008 10:10:46 GMT
Hi,

Have you tried the resource-exists selector ?

<map:select type="resource-exists">

André



Le 14/11/2008 10:58, > Smigge (par Internet, dépôt 
users-return-96849-andre.davignon=developpement-durable.gouv.fr@cocoon.apache.org) 
a écrit  :
> I have a match pattern that makes some tests and also reports about the
> contents of a file, if the file happens to exist. The problem is that cocoon
> crashes if the file doesn't exist. I can see two possible solutions, but
> don't know how to implement them
> 
> 1) having alternative match patterns: when the first fails, then run the
> next one.
> 
> 2) Using an almost empty file and using cinclude to attach the file to be
> tested.
> 
> The first one would probably be more convenient, but I don't know how to do
> this. And the cinclude also causes a crash, when the file doesn't exist. Any
> help?

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


Mime
View raw message