Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Throwing exceptions from with XSL

Reply
Thread Tools

Throwing exceptions from with XSL

 
 
RobA
Guest
Posts: n/a
 
      12-19-2003
Does anyone now how to fire an exception from with plain XSL

e.g.

<xsl:if test="something_not_correct">
<xsl:exception>
<xsl:text>The transformation failed...</xsl:text>
</xsl:exception>
</xsl:if>
 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      12-19-2003


RobA wrote:

> Does anyone now how to fire an exception from with plain XSL
>
> e.g.
>
> <xsl:if test="something_not_correct">
> <xsl:exception>
> <xsl:text>The transformation failed...</xsl:text>
> </xsl:exception>


That should be
<xsl:message terminate="yes">
The problem ... occurred during the transformation.
</xsl:message>



--

Martin Honnen
http://JavaScript.FAQTs.com/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
Throwing Exceptions =?Utf-8?B?Q2xpdmU=?= ASP .Net 1 02-20-2004 03:23 PM
Throwing Exceptions C ASP .Net 2 11-06-2003 03:02 PM
Newbie question - Throwing Exceptions. John Leonard Java 7 10-01-2003 01:45 PM
[JNI] Problem throwing my own exceptions Loic Minier Java 1 08-19-2003 07:52 AM



Advertisments