RE: [xsl] Re: Re: Is there a way to catch Exceptions in xslt thro wn from calling a Java function within Xalan ?

Subject: RE: [xsl] Re: Re: Is there a way to catch Exceptions in xslt thro wn from calling a Java function within Xalan ?
From: Bill Riegel <BRiegel@xxxxxxx>
Date: Mon, 1 Mar 2004 15:21:25 -0600
I needed to know if an exception is thrown by Java code, can you catch it in
xslt without the entire Transformation being terminated ? 


Bill Riegel
LandMark Graphics
713-839-3388

-----Original Message-----
From: Dimitre Novatchev [mailto:dnovatchev@xxxxxxxxx] 
Sent: Monday, March 01, 2004 3:18 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: [xsl] Re: Re: Is there a way to catch Exceptions in xslt thrown
from calling a Java function within Xalan ?


"Gheste, Amit S" <Amit.Gheste@xxxxxxxxxx> wrote in message
news:4A173960D4CB824DA2F4B8EB67739D6A02769BBE@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
...
> I have tried this with a VB Code, and this works with the MSXML
> parser, but I cannot test it with the Xalan parser as I cannot
> install stuff here.
>
> Anyway try this.
>
> <xsl:if test="$sometest">
> <xsl:message terminate="yes">Invalid Date Format in the
> Begin Date</xsl:message>
> </xsl:if>
>
> Regards
>
> AmitGhaste
> 314.359.1851

The original question was "Is there a way to catch Exceptions in xslt thrown
from calling a Java function within Xalan ?"

You are describing something very different -- a way to terminate an XSLT
transformation. Where is the extension (Java) function, where is the
throwing of the exception (in the Java code) and its catching in the XSLT
code?


Cheers,

Dimitre Novatchev
FXSL developer,

http://fxsl.sourceforge.net/ -- the home of FXSL
Resume: http://fxsl.sf.net/DNovatchev/Resume/Res.html




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

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


Current Thread