[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Re: Re: Is there a way to catch Exceptions in xslt

Subject: RE: Re: Re: Is there a way to catch Exceptions in xslt thrown from calling a Java function within Xalan ?
From: Bill Riegel <BRiegel@xxxxxxx>
Date: Mon, 1 Mar 2004 15:21:25 -0600
catch xsl message
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:  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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.