File: error-html.xsl

package info (click to toggle)
icecast2 2.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 6,560 kB
  • sloc: ansic: 34,522; sh: 5,187; makefile: 376; xml: 106; javascript: 88
file content (18 lines) | stat: -rw-r--r-- 737 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:include href="includes/web-page.xsl"/>
    <xsl:variable name="title">Error</xsl:variable>

    <xsl:template name="content">
        <h2><xsl:value-of select="$title" /></h2>
        <xsl:for-each select="/report/incident">
            <section class="box">
                <h3 class="box_title">Response</h3>
                <h4>Message</h4>
                <p><xsl:value-of select="state/text" /></p>
                <xsl:if test="state/@definition">
                    <p>Error code: <xsl:value-of select="state/@definition" /></p>
                </xsl:if>
            </section>
        </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>