summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-03-08 15:12:30 +0000
committerrandomdan <randomdan@localhost>2011-03-08 15:12:30 +0000
commitc2f9786a128dddfc4be3ba321254f56dc1d97666 (patch)
tree87bda523527910a15a3bdf319a2f7197280abc5c
parentOverride the default timeout when importing bugs (diff)
downloadgentoobrowse-c2f9786a128dddfc4be3ba321254f56dc1d97666.tar.bz2
gentoobrowse-c2f9786a128dddfc4be3ba321254f56dc1d97666.tar.xz
gentoobrowse-c2f9786a128dddfc4be3ba321254f56dc1d97666.zip
Fix style to not override the default one in base.xslt
-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>