[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] handling failed document() invocations


Subject: RE: [xsl] handling failed document() invocations
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 31 Oct 2002 08:56:17 +0200

Hi,

> Reading this thread, I understand that my problem is related, 
> which was
> posted as "xpath expression validity?"
> 
> How do I handle the failed document() or invalid XPath 
> expression error?
> I am using XSL only with MSXML4, Xercers-J (1.4.4 or others 
> if recommended)
> and XMLSpy v5

If I remember your original question correctly, just write your stylesheet so that there's a sanity check before the expression that evaluates document(), so that you never attempt to evaluate the document() function with a non-URI argument.

Cheers,

Jarno

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
Keywords