I think you should be able to use the xsl:if syntax (simular to that below)

<xsl:if test="document(test.xml)">
  <xsl:for-each select="document(test.xml)/select/option">
    <option value="{@value}"><xsl:value-of select="."/></option>
  </xsl:for-each>
</xsl:if>

Cheers
Tim

> ----- Original Message -----
> From: Hannes Scherb
> To: Sablotron Mailing List
> Sent: Wednesday, June 13, 2001 5:34 PM
> Subject: [Sab] check if xml-file exist
>
>
> hi,
>
> is there any way to check if an xml-documet exist. because i want to use
the
> function "document(test.xml)" and if the file test.xml does not exist the
> system crash?
> can someone tell me if there is a way to check this before!
>
> hannes
>
>

Reply via email to