summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse/xslt/error.xslt20
1 files changed, 9 insertions, 11 deletions
diff --git a/gentoobrowse/xslt/error.xslt b/gentoobrowse/xslt/error.xslt
index 50b7777..3b3e79c 100644
--- a/gentoobrowse/xslt/error.xslt
+++ b/gentoobrowse/xslt/error.xslt
@@ -9,17 +9,15 @@
<meta name="google-site-verification" content="f2uqzTiSxj7gbzzRzf4nOCB3WfQuWV9Knfjb9ju69jU" />
<meta name="description" content="Error" />
</xsl:template>
- <xsl:template match="/error">
- <h2>Error</h2>
- <h3><xsl:value-of select="/error/type" /></h3>
- <p><xsl:value-of select="/error/what" /></p>
- </xsl:template>
- <xsl:template match="/notfound">
- <h2>Not found</h2>
- <p>The resource at &quot;<xsl:value-of select="/notfound/resource" />&quot; could not be found.</p>
- </xsl:template>
<xsl:template name="content">
- <xsl:apply-templates select="/error" />
- <xsl:apply-templates select="/notfound" />
+ <xsl:for-each select="/error">
+ <h2>Error</h2>
+ <h3><xsl:value-of select="/error/type" /></h3>
+ <p><xsl:value-of select="/error/what" /></p>
+ </xsl:for-each>
+ <xsl:for-each select="/notfound">
+ <h2>Not found</h2>
+ <p>The resource at &quot;<xsl:value-of select="/notfound/resource" />&quot; could not be found.</p>
+ </xsl:for-each>
</xsl:template>
</xsl:stylesheet>