summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2011-03-09 16:43:04 +0000
committerrandomdan <randomdan@localhost>2011-03-09 16:43:04 +0000
commita460f81cbedf0d19ee2b304c37996f4c6c9fa75a (patch)
tree1982c2239bc066534513aed6ce0a56c1786524d2
parentFix style to not override the default one in base.xslt (diff)
downloadgentoobrowse-a460f81cbedf0d19ee2b304c37996f4c6c9fa75a.tar.bz2
gentoobrowse-a460f81cbedf0d19ee2b304c37996f4c6c9fa75a.tar.xz
gentoobrowse-a460f81cbedf0d19ee2b304c37996f4c6c9fa75a.zip
Allow specifying all sorts of previously hardcoded things, most importantly paths
Rework the CGI stage structure to support custom presentations in the event of errors Changes to the Jamfile to ensure each component is complete in itself
-rw-r--r--gentoobrowse/xslt/error.xslt9
1 files changed, 5 insertions, 4 deletions
diff --git a/gentoobrowse/xslt/error.xslt b/gentoobrowse/xslt/error.xslt
index 3b3e79c..ac4a316 100644
--- a/gentoobrowse/xslt/error.xslt
+++ b/gentoobrowse/xslt/error.xslt
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:project2="http://project2.randomdan.homeip.net">
<xsl:import href="base.xslt" />
<xsl:output encoding="utf-8" method="xml" media-type="text/html" indent="yes"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
@@ -12,12 +13,12 @@
<xsl:template name="content">
<xsl:for-each select="/error">
<h2>Error</h2>
- <h3><xsl:value-of select="/error/type" /></h3>
- <p><xsl:value-of select="/error/what" /></p>
+ <h3><xsl:value-of select="/error/project2:error-type" /></h3>
+ <p><xsl:value-of select="/error/project2: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>
+ <p>The resource at &quot;<xsl:value-of select="/notfound/project2:missing-resource" />&quot; could not be found.</p>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>