33 lines
1.7 KiB
HTML
33 lines
1.7 KiB
HTML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Copyright 1999-2025. WebPros International 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:variable name="newline">
|
|
<xsl:text><br/></xsl:text>
|
|
</xsl:variable>
|
|
<xsl:variable name="tab">
|
|
<xsl:text> </xsl:text>
|
|
</xsl:variable>
|
|
<xsl:template match="message">
|
|
<xsl:param name="class"/>
|
|
<div class="<xsl:value-of select="$class"/>">
|
|
<xsl:choose>
|
|
<xsl:when test="@severity='error'"><b>Error:</b></xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:choose>
|
|
<xsl:when test="@severity='warning'"><b>Warning:</b></xsl:when>
|
|
<xsl:otherwise><b>Info:</b></xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:otherwise>
|
|
</xsl:choose><xsl:value-of select="$tab"/><xsl:if test="local-name(..)='object'">
|
|
<b><xsl:value-of select="../@type"/></b> "<xsl:value-of select="../@name"/>"</xsl:if><xsl:value-of select="$newline"/>
|
|
<code style="white-space:pre-wrap"><xsl:choose>
|
|
<xsl:when test="description[@encoding = 'base64']">@BASE_64_BEGIN@<xsl:value-of select="description"/>@BASE_64_END@</xsl:when>
|
|
<xsl:otherwise>@ESCAPE_VALUE_BEGIN@<xsl:value-of select="description"/>@ESCAPE_VALUE_END@</xsl:otherwise>
|
|
</xsl:choose></code>
|
|
<xsl:apply-templates select="message">
|
|
<xsl:with-param name="class" select="'indent-box'"/>
|
|
</xsl:apply-templates>
|
|
</div>
|
|
</xsl:template>
|
|
</xsl:stylesheet> |