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

svn commit: r149175 - lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl

Author: gregor
Date: Sun Jan 30 14:54:04 2005
New Revision: 149175

URL: http://svn.apache.org/viewcvs?view=rev&rev=149175
Log:
Improved title generation for authoring, admin and site areas

Modified:
    lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl

Modified: lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl
URL: http://svn.apache.org/viewcvs/lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl?view=diff&r1=149174&r2=149175
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl (original)
+++ lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl Sun Jan 30 14:54:04 2005
@@ -18,7 +18,6 @@
 <!-- $Id$ -->
 
 <xsl:stylesheet version="1.0"
-  xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xhtml="http://www.w3.org/1999/xhtml"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:xso="http://apache.org/cocoon/lenya/xslt/1.0"
@@ -27,7 +26,7 @@
 <xsl:param name="contextprefix"/>
 <xsl:param name="publicationid"/>
 <xsl:param name="area"/>
-<xsl:param name="documentid"/>
+<xsl:param name="documenturl"/>
   
 <xsl:namespace-alias stylesheet-prefix="xso" result-prefix="xsl"/>
   
@@ -50,7 +49,8 @@
         <xso:apply-templates select="xhtml:html/xhtml:head/*[local-name() != 'title']"/>
       </head>
       <body>
-        <xsl:apply-templates select="xhtml:div[@id = 'lenya-menubar']"/>
+        <xsl:apply-templates select="xhtml:div[@id = 'lenya-logo']"/>
+        <xsl:apply-templates select="xhtml:div[@id = 'lenya-menus']"/>
         <div id="lenya-cmsbody">
           <xso:apply-templates select="xhtml:html/xhtml:body/node()"/>
         </div>
@@ -59,19 +59,18 @@
     </html>
   </xso:template>
   
-  
   <xso:template name="title">
     <title>
-      Apache Lenya -
-      <xsl:value-of select="$publicationid"/> -
-      <xsl:value-of select="$area"/> -
-      <xsl:value-of select="$documentid"/> -
+      Apache Lenya |
+      <xsl:value-of select="$publicationid"/> |
+      <xsl:value-of select="$area"/> |
+      <xsl:value-of select="$documenturl"/> |
       <xso:value-of select="xhtml:html/xhtml:head/xhtml:title"/>
     </title>
   </xso:template>
   
   </xsl:if>
-
+    
     <xso:template match="xhtml:script">
         <xso:copy>
            <xso:apply-templates select="@*|node()"/>
@@ -79,6 +78,14 @@
         </xso:copy>
     </xso:template>
 
+  <xso:template match="xhtml:*">
+    <xso:element>
+      <xsl:attribute name="name">{local-name()}</xsl:attribute>
+      <xso:apply-templates select="@*|node()"/>
+    </xso:element>
+  </xso:template>
+  
+  
   <xso:template match="@*|node()">
     <xso:copy>
       <xso:apply-templates select="@*|node()"/>



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