cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Conal Tuohy <con...@paradise.net.nz>
Subject RE: XSL File I/O
Date Sat, 19 Feb 2005 05:06:20 GMT
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: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message