Since I could not find anything on the web (not even here on stack overflow), I hope you could help me find out how to raise an exception during the runtime of an XSL-Transformation. It runs inside the Oracle Service Bus 11, so we have only XLST1.0 features :(
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="//DATA">
<parsed>
<xsl:for-each select="ITEM">
<xsl:choose>
<xsl:when test="COND = 'X'">
<xsl:text>disabled</xsl:text>
</xsl:when>
<xsl:when test="COND = ''">
<xsl:text>running</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>HERE SHOULD AN ERROR BE RAISED!</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</parsed>
</xsl:template>
</xsl:stylesheet>