RE: [xsl] XSLT File I/O?

Subject: RE: [xsl] XSLT File I/O?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 16 Feb 2005 23:19:11 -0000
You'll need to call out to Java to do this. Shouldn't be difficult, and with
luck you don't even need to write any custom Java code, you can just call
out to the standard Java library.

Details depend on the XSLT processor that you're using.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Hiral Parikh [mailto:hparikh@xxxxxxxxxxxxxxxx] 
> Sent: 16 February 2005 22:10
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: [xsl] XSLT File I/O?
> 
> Hi,
> I am doing a bunch of XSL transformations from an XML file 
> using Cocoon and
> finally generate a FO file. 
> 
> I have the following requirement to carry out in my XSL 
> transformations:
> 1. Get the fileurl for images in the XML (e.g. /images/A.jpg)
> 2. Check for the file on a physical location
> 3. If the file exist then ok, otherwise change the file url
> (/images/A_temp.jpg).
> 
> I have not used File I/O using XSL and am not even sure if 
> that's possible. 
> Can someone please throw some light on this ? 
> Is it possible to fulfill the above requirement using XSL? 
> Are there any
> other ways to do this using Cocoon?
> 
> Thanks in advance,
> Hiral

Current Thread