You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ed...@apache.org on 2005/10/26 18:57:45 UTC

svn commit: r328676 - /lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml-opendocument.xsl

Author: edith
Date: Wed Oct 26 09:57:40 2005
New Revision: 328676

URL: http://svn.apache.org/viewcvs?rev=328676&view=rev
Log:
Odt doc needs a own page2xhtml xslt

Modified:
    lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml-opendocument.xsl

Modified: lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml-opendocument.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml-opendocument.xsl?rev=328676&r1=328675&r2=328676&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml-opendocument.xsl (original)
+++ lenya/trunk/src/webapp/lenya/pubs/default/xslt/page2xhtml-opendocument.xsl Wed Oct 26 09:57:40 2005
@@ -1,13 +1,13 @@
-<?xml version="1.0"?>
+<?xml version="1.0" encoding="UTF-8" ?>
 <!--
   Copyright 1999-2004 The Apache Software Foundation
-
+  
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at
-
+  
   http://www.apache.org/licenses/LICENSE-2.0
-
+  
   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -15,10 +15,95 @@
   limitations under the License.
 -->
 
+<!-- $Id: page2xhtml.xsl 162081 2005-04-20 21:49:03Z michi $ -->
+
 <xsl:stylesheet version="1.0"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
->
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:xhtml="http://www.w3.org/1999/xhtml"
+  xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+  xmlns:lenya="http://apache.org/cocoon/lenya/page-envelope/1.0" 
+  xmlns:dc="http://purl.org/dc/elements/1.1/"
+  exclude-result-prefixes="page xhtml dc lenya"
+  >
+  
+  
+  <!-- {context-prefix}/{publication-id}/{area} -->
+  <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">
+    <html>
+      <head>
+        <link rel="stylesheet" href="{$root}/css/page.css" type="text/css"/>
+        <!-- Load doctype-specific CSS -->
+        <xsl:choose>
+          <xsl:when test="$document-type">
+            <link rel="stylesheet" href="{$root}/css/{$document-type}.css" type="text/css"/>
+          </xsl:when>
+          <xsl:otherwise>
+            <!-- do nothing -->
+          </xsl:otherwise>
+        </xsl:choose>
+        <xsl:apply-templates select="html/head/*"/>
+        <meta content="Apache Lenya" name="generator"/>
+        <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
+      </head>	
+      <body>
+        <div id="page">
+          <table width="100%" cellpadding="0" cellspacing="0" border="0">
+            <tr>
+              <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>
+          <xsl:apply-templates select="xhtml:div[@id = 'tabs']"/>
+          <table width="100%" border="0" cellpadding="0" cellspacing="0">
+            <tr>
+              <td valign="top" style="width: 230px">
+                <xsl:apply-templates select="xhtml:div[@id = 'menu']"/>
+              </td>
+              <td valign="top">
+                <div id="main">
+                  <xsl:apply-templates select="xhtml:div[@id = 'breadcrumb']"/>
+                  <xsl:apply-templates select="xhtml:div[@id = 'search']"/>
+                  <div id="body">
+                    <xsl:apply-templates select="html/body/*"/>
+                  </div>  
+                </div>
+              </td>
+            </tr>
+          </table>
+        </div>
+      </body>
+    </html>
+  </xsl:template>
+  
+  <xsl:template match="@*|node()|comment()" priority="-1">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()|comment()"/>
+    </xsl:copy>
+  </xsl:template>
   
-<xsl:import href="fallback://xslt/page2xhtml.xsl"/>
   
-</xsl:stylesheet>
+</xsl:stylesheet>
\ No newline at end of file



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