You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Lucian Opris <lu...@bluematrix.com> on 2003/06/12 21:33:49 UTC
test if a file exist
Hi,
This is xsl question? 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
lucian@bluematrix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: test if a file exist
Posted by "J.Pietschmann" <j3...@yahoo.de>.
Lucian Opris wrote:
> This is xsl question?
Yes.
> How can I test if a file exist on disk through xsl?
You can't, unless you use an extension function.
Ask on a list specific to your XSLT processor.
J.Pietschmann
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: test if a file exist
Posted by Lucian Opris <lu...@bluematrix.com>.
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
lucian@bluematrix.com
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org