Throwing exceptions from with XSL

Discussion in 'XML' started by RobA, Dec 19, 2003.

  1. RobA

    RobA Guest

    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>
     
    RobA, Dec 19, 2003
    #1
    1. Advertising

  2. 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/
     
    Martin Honnen, Dec 19, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. C

    Throwing Exceptions

    C, Nov 6, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    382
    Kevin Spencer
    Nov 6, 2003
  2. =?Utf-8?B?Q2xpdmU=?=

    Throwing Exceptions

    =?Utf-8?B?Q2xpdmU=?=, Feb 20, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    350
    S. Justin Gengo
    Feb 20, 2004
  3. Loic Minier
    Replies:
    1
    Views:
    2,113
    Loïc Minier
    Aug 19, 2003
  4. John Leonard
    Replies:
    7
    Views:
    350
  5. Replies:
    8
    Views:
    506
    Gordon Beaton
    Jan 3, 2006
Loading...

Share This Page