[Yanel-commits] rev 21832 - public/yanel/trunk/src/webapp/xslt

michi at wyona.com michi at wyona.com
Wed Jan 17 10:50:13 CET 2007


Author: michi
Date: 2007-01-17 10:50:12 +0100 (Wed, 17 Jan 2007)
New Revision: 21832

Modified:
   public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl
Log:
404 caught

Modified: public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl
===================================================================
--- public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl	2007-01-17 09:36:50 UTC (rev 21831)
+++ public/yanel/trunk/src/webapp/xslt/xmlInfo2xhtml.xsl	2007-01-17 09:50:12 UTC (rev 21832)
@@ -15,6 +15,9 @@
             <title>
               Yanel
               <xsl:choose>
+                <xsl:when test="/yanel/exception/@status = '404'">
+                  - 404
+                </xsl:when>
                 <xsl:when test="child::node()/exception">
                   <i18n:text>- An error occurred</i18n:text>
                 </xsl:when>
@@ -149,6 +152,11 @@
   
   <xsl:template match="exception">
     <p>
+      <xsl:choose>
+        <xsl:when test="@status = '404'">
+        No such page:  <xsl:value-of select="../request/@uri"/>
+        </xsl:when>
+        <xsl:otherwise>
       <h4>Exception</h4>
       <ul>
         <xsl:if test="@status"><li>Status: <xsl:value-of select="@status"/></li></xsl:if>
@@ -158,6 +166,8 @@
           </ul>
         </li>
       </ul>
+        </xsl:otherwise>
+      </xsl:choose>
     </p>
   </xsl:template> 
 




More information about the Yanel-commits mailing list