I want to check if a file exists with xslt 2.0. However, it does not work. I tried this:
<xsl:choose> <xsl:when test="doc(iri-to-uri(concat($currFolder, '/', $currSubFolder, '/', @href)))">
(The path is true)
however, this leads to an error when the file does not exist.
and this:
<xsl:choose> <xsl:when test="doc-available(iri-to-uri(concat($currFolder, '/', $currSubFolder, '/', @href)))">
it doesnβt work, it tells me that the files there clearly do not exist.
What is the right way to do this? A reliable way to check if an xml file exists.
xml xslt
user3629892
source share