| Author: Santhosh 09 Oct 2008 | Member Level: Bronze | Rating: Points: 4 |
Yes you can do this by using the following:
<xsl:when test="FileUtils:exists($filename)"> <xsl:message>Yes,File Exists</xsl:message> </xsl:when> <xsl:otherwise> <xsl:message>File Not Found</xsl:message> </xsl:otherwise>
$filename will be the variable that holds your file path.
|
| Author: sudheshna 09 Oct 2008 | Member Level: Bronze | Rating: Points: 3 |
Hi,
I appreciate for the response. I tried with the code u provided and i faced the error as :-Reference to undeclared namespace prefix: 'FileUtils'. do u have any idea on the namespace to be added. Thanks in advance.
|
| Author: Santhosh 10 Oct 2008 | Member Level: Bronze | Rating: Points: 3 |
Hi,
I missed out to mention the namespace for using exists method. I tried with this namespace and it worked for me. use the following namespace:
xmlns:FileUtils="java:org.cdlib.xtf.xslt.FileUtils"
|