Hiral Parikh wrote:

> After further researching and trial-error I got a better, cleaner
solution.
> Instead of doing xinclude, document() etc etc, I just used the saxon api
for
> Java this way:
>
>  <xsl:variable name="imageExists"
select="file:exists(file:new($imageFile))"
> xmlns:file="java.io.File"/>

NB this may cause problems with your cache - if you request the pipeline
when the image DOESN"T exist, and then request it later when the image DOES
exist (or vice versa), you will get the same result both times because the
pipeline will be cached. This is why it's better to use Cocoon's own
aggregation techniques.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to