diff options
author | randomdan <randomdan@localhost> | 2011-03-09 16:43:04 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2011-03-09 16:43:04 +0000 |
commit | a460f81cbedf0d19ee2b304c37996f4c6c9fa75a (patch) | |
tree | 1982c2239bc066534513aed6ce0a56c1786524d2 | |
parent | Fix style to not override the default one in base.xslt (diff) | |
download | gentoobrowse-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.xslt | 9 |
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 "<xsl:value-of select="/notfound/resource" />" could not be found.</p> + <p>The resource at "<xsl:value-of select="/notfound/project2:missing-resource" />" could not be found.</p> </xsl:for-each> </xsl:template> </xsl:stylesheet> |