<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 1999-2015. Parallels IP Holdings GmbH. All Rights Reserved. -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" indent="yes"/>
    <xsl:strip-space  elements="*"/>
    <xsl:variable name="newline">
               <xsl:text>
</xsl:text>
    </xsl:variable>
    <xsl:variable name="tab">
        <xsl:text>      </xsl:text>
    </xsl:variable>
    <xsl:template match="message">
        <xsl:value-of select="$newline"/>
        <xsl:choose>
            <xsl:when test="@severity='error'">ERROR</xsl:when>
            <xsl:otherwise>
                <xsl:choose>
                    <xsl:when test="@severity='warning'">WARNING</xsl:when>
                    <xsl:otherwise>INFO</xsl:otherwise>
                </xsl:choose>
            </xsl:otherwise>
        </xsl:choose>:<xsl:value-of select="$tab"/>(<xsl:if test="local-name(..)='object'">
        <xsl:value-of select="../@type"/> object '<xsl:value-of select="../@name"/>'</xsl:if>)<xsl:value-of select="$tab"/>
        @ESCAPE_VALUE_BEGIN@<xsl:value-of select="description"/>@ESCAPE_VALUE_END@
        <xsl:value-of select="$newline"/>
        <xsl:apply-templates select="message"/>
        <xsl:value-of select="$newline"/>
    </xsl:template>
</xsl:stylesheet>