I'm using xalan XSL processor and I couldn't find anything for checking the
existence of a file on disk.
Examples would be great.
Any help appreciately
Thanks a lot
Lucian Opris
How can I test if a file exist on disk through xsl? It throws out this message:
org.apache.fop.apps.FOPException: java.lang.NoSuchMethodException: For
extension function, could not find method
java.io.File.exists([ExpressionContext,] #STRING).
Checked both static and instance methods.
at org.apache.fop.apps.CommandLineStarter.run(Unknown Source)
at org.apache.fop.apps.Fop.main(Unknown Source)
---------
java.lang.RuntimeException: java.lang.NoSuchMethodException: For extension
function, could not find method java.io.File.exists([ExpressionContext,]
#STRING).
Checked both static and instance methods.
at
org.apache.xalan.transformer.TransformerImpl.run(TransformerImpl.java:3231)
The xsl line looks like this:
<xsl:if test="file:exists('/nas/web/clients/demo/images/image_upload/....')">
.......
</xsl:if>
Sorry for this off-topic question.
Thanks
Lucian Opris
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]