You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by chris markiewicz <cm...@commnav.com> on 2001/03/26 15:40:01 UTC
existance of a file
hello.
i have a page that displays an image (among other things). if the image is
removed from the filesystem, i would like to display an alternate image.
can xsl help me, or should i check for the existance of the file in the back
end (java)?
thanks
chris
RE: existance of a file
Posted by Christian Aberger <xm...@Aberger.at>.
Hi !
This is definitly not a question that should be posted here, I suppose it is
a question for the xslt mailing list. Please ask there the next time.
I suppose you use xalan to transform some xml - document that contains the
path to the image to transform it to html, right ?
something like:
<image path="/usr/share/htdocs/images/sample.jpg"/>
then you need in the stylesheet a sequence like:
<xsl:if test="string-length(image/@path)=0">
<img alt="blah blah blah..." src="/usr/share/htdocs/images/default.jpg"/>
</xsl:if>
wfR Christian Aberger
-----Original Message-----
From: chris markiewicz [mailto:cmarkiew@commnav.com]
Sent: Montag, 26. März 2001 15:40
To: xalan-dev@xml.apache.org
Subject: existance of a file
hello.
i have a page that displays an image (among other things). if the image is
removed from the filesystem, i would like to display an alternate image.
can xsl help me, or should i check for the existance of the file in the back
end (java)?
thanks
chris