[Yanel-commits] rev 43151 - public/yanel/trunk/src/realms/from-scratch-realm-template/data-repo/data/app/xslt

michi at wyona.com michi at wyona.com
Mon Jun 8 09:23:24 CEST 2009


Author: michi
Date: 2009-06-08 09:23:23 +0200 (Mon, 08 Jun 2009)
New Revision: 43151

Added:
   public/yanel/trunk/src/realms/from-scratch-realm-template/data-repo/data/app/xslt/404.xsl
Log:
404 xslt added

Added: public/yanel/trunk/src/realms/from-scratch-realm-template/data-repo/data/app/xslt/404.xsl
===================================================================
--- public/yanel/trunk/src/realms/from-scratch-realm-template/data-repo/data/app/xslt/404.xsl	                        (rev 0)
+++ public/yanel/trunk/src/realms/from-scratch-realm-template/data-repo/data/app/xslt/404.xsl	2009-06-08 07:23:23 UTC (rev 43151)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<xsl:stylesheet version="1.0"
+  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xhtml="http://www.w3.org/1999/xhtml"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:yanel="http://www.wyona.org/yanel/1.0"
+  xmlns:i18n="http://www.wyona.org/yanel/i18n/1.0"
+>
+
+  <!-- TODO: Isn't there a more standardized i18n namespace? -->
+
+  <xsl:output method="xhtml" encoding="UTF-8"/>
+
+  <xsl:param name="yanel.back2realm" select="'BACK2REALM_IS_NULL'"/>
+  <xsl:param name="yanel.reservedPrefix" select="'RESERVEDPREFIX_IS_NULL'"/>
+  <xsl:param name="content-language" select="'CONTENT_LANGUAGE_IS_NULL'"/>
+  
+  <xsl:template match="/">
+        <html>
+          <head>
+            <title>
+<xsl:choose>
+<xsl:when test="$content-language = 'fr'">
+La page que vous venez d'appeler n'existe pas (ou plus)
+</xsl:when>
+<xsl:otherwise>
+Diese Seite existiert nicht (mehr)
+</xsl:otherwise>
+</xsl:choose>
+            </title>
+          </head>
+          <body>
+<xsl:choose>
+<xsl:when test="$content-language = 'fr'">
+<h2>La page que vous venez d'appeler n'existe pas (ou plus)</h2>
+<p>
+Veuillez utiliser la navigation pour atteindre la domaine souhaitée.
+</p>
+</xsl:when>
+<xsl:otherwise>
+<h1>Diese Seite existiert nicht (mehr)</h1>
+<p>
+<xsl:value-of select="/yanel:yanel/yanel:exception"/>
+</p>
+<p>
+Bitte benutzen Sie die Navigation, um in den gewünschten Bereich zu gelangen.
+</p>
+</xsl:otherwise>
+</xsl:choose>
+          </body>
+        </html>
+  </xsl:template>
+  
+</xsl:stylesheet>



More information about the Yanel-commits mailing list