|
[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








