You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by mi...@apache.org on 2005/04/20 23:49:04 UTC

svn commit: r162081 - in /lenya/trunk/src/webapp/lenya/pubs/default: publication-sitemap.xmap xslt/page2xhtml.xsl

Author: michi
Date: Wed Apr 20 14:49:03 2005
New Revision: 162081

URL: http://svn.apache.org/viewcvs?rev=162081&view=rev
Log:
language added in order to show how the language can also be used within the global layout

Modified:
    lenya/trunk/src/webapp/lenya/pubs/default/publication-sitemap.xmap
    lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl

Modified: lenya/trunk/src/webapp/lenya/pubs/default/publication-sitemap.xmap
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/publication-sitemap.xmap?rev=162081&r1=162080&r2=162081&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/publication-sitemap.xmap (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/publication-sitemap.xmap Wed Apr 20 14:49:03 2005
@@ -129,6 +129,7 @@
           <map:parameter name="url" value="{5}"/>
           <map:parameter name="document-id" value="{page-envelope:document-id}"/>
           <map:parameter name="document-type" value="{page-envelope:document-type}"/>
+          <map:parameter name="language" value="{page-envelope:document-language}"/>
         </map:transform>
         <map:select type="parameter">
           <map:parameter name="parameter-selector-test" value="{1}"/>

Modified: lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl?rev=162081&r1=162080&r2=162081&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml.xsl Wed Apr 20 14:49:03 2005
@@ -32,11 +32,15 @@
 <xsl:param name="root"/>
 
 <!-- i.e. doctypes/xhtml-document -->
+<xsl:param name="document-type"/>
+
 <xsl:param name="document-id"/>
 
 <!-- The rquest url i.e. /lenya/doctypes/xhtml-document_en.html -->
 <xsl:param name="url"/>
 
+<xsl:param name="language"/>
+
 <xsl:param name="document-type"/>
 
 <xsl:template match="cmsbody">
@@ -60,7 +64,16 @@
       <div id="page">
       <table width="100%" cellpadding="0" cellspacing="0" border="0">
         <tr>
-          <td id="publication-title">Welcome to the Default Publication!</td>
+          <td id="publication-title">
+            <xsl:choose>
+              <xsl:when test="$language = 'de'">
+                Willkommen zur Default Publikation!
+              </xsl:when>
+              <xsl:otherwise>
+                Welcome to the Default Publication!
+              </xsl:otherwise>
+            </xsl:choose>
+          </td>
           <td id="project-logo"><img src="{$root}/images/project-logo.png" alt="project logo"/></td>
         </tr>
       </table>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org