You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/03/09 17:47:38 UTC

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

Author: andreas
Date: Thu Mar  9 08:47:36 2006
New Revision: 384552

URL: http://svn.apache.org/viewcvs?rev=384552&view=rev
Log:
Reverting check-in (will check-in the whitespace changes in a separate commit)

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?rev=384552&r1=384551&r2=384552&view=diff
==============================================================================
--- lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl (original)
+++ lenya/trunk/src/webapp/lenya/xslt/menu/menu2xslt.xsl Thu Mar  9 08:47:36 2006
@@ -1,13 +1,13 @@
 <?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
-  
+
+      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.
@@ -26,99 +26,100 @@
   exclude-result-prefixes="menu"
   >
   
-  <xsl:param name="contextprefix"/>
-  <xsl:param name="publicationid"/>
-  <xsl:param name="area"/>
-  <xsl:param name="documenturl"/>
-  
-  <xsl:namespace-alias stylesheet-prefix="xso" result-prefix="xsl"/>
+<xsl:param name="contextprefix"/>
+<xsl:param name="publicationid"/>
+<xsl:param name="area"/>
+<xsl:param name="documenturl"/>
+  
+<xsl:namespace-alias stylesheet-prefix="xso" result-prefix="xsl"/>
+  
+<xsl:template match="/">
+  
+  <xso:stylesheet version="1.0"
+    xmlns:xhtml="http://www.w3.org/1999/xhtml"
+    exclude-result-prefixes="xhtml">
+    
+  <xso:output method="xml" indent="yes"/>
+
+  <xsl:if test="$area != 'live'">
+    
+  <xso:template match="/">
+    <html>
+      <head>
+        <xso:call-template name="title"/>
+        <script src="{$contextprefix}/lenya/menu/menu.js" type="text/javascript">&#160;</script>
+        <link href="{$contextprefix}/lenya/css/menu.css" rel="stylesheet" type="text/css"/>
+        <xso:apply-templates select="xhtml:html/xhtml:head/*[local-name() != 'title']"/>
+      </head>
+      <body>
+        <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>
+        <script type="text/javascript"> initialize(); </script>
+      </body>
+    </html>
+  </xso:template>
+  
+  <xso:template name="title">
+    <title>
+      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:template match="/">
+  </xsl:if>
     
-    <xso:stylesheet version="1.0"
-      xmlns:xhtml="http://www.w3.org/1999/xhtml"
-      exclude-result-prefixes="xhtml">
-      
-      <xso:output method="xml" indent="yes"/>
-      
-      <xsl:if test="$area != 'live'">
-        
-        <xso:template match="/">
-          <html>
-            <head>
-              <xso:call-template name="title"/>
-              <script src="{$contextprefix}/lenya/menu/menu.js" type="text/javascript">&#160;</script>
-              <link href="{$contextprefix}/lenya/css/menu.css" rel="stylesheet" type="text/css"/>
-              <xso:apply-templates select="xhtml:html/xhtml:head/*[local-name() != 'title']"/>
-            </head>
-            <body>
-              <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>
-              <script type="text/javascript"> initialize(); </script>
-            </body>
-          </html>
-        </xso:template>
-        
-        <xso:template name="title">
-          <title>
-            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()"/>
-          <xso:if test="not(.//text())"><xso:text>&#160;</xso:text></xso:if>
-        </xso:copy>
-      </xso:template>
-      
-      <xso:template match="xhtml:*">
-        <xso:element name="{string('{local-name()}')}">
-          <xso:apply-templates select="@*|node()"/>
-        </xso:element>
-      </xso:template>
-      
-      
-      <xso:template match="@*|node()">
+    <xso:template match="xhtml:script">
         <xso:copy>
-          <xso:apply-templates select="@*|node()"/>
+           <xso:apply-templates select="@*|node()"/>
+           <xso:if test="not(.//text())"><xso:text>&#160;</xso:text></xso:if>
         </xso:copy>
-      </xso:template>
-      
-    </xso:stylesheet>
-    
-  </xsl:template>
-  
-  
-  
-  <xsl:template match="xhtml:*">
-    <xsl:element name="{local-name()}">
-      <xsl:apply-templates select="@*|node()"/>
-    </xsl:element>
-  </xsl:template>
+    </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>
   
   
-  <xsl:template match="menu:message">
-    <xsl:attribute name="title">
-      <xsl:value-of select="."/>
-    </xsl:attribute>
-  </xsl:template>
+  <xso:template match="@*|node()">
+    <xso:copy>
+      <xso:apply-templates select="@*|node()"/>
+    </xso:copy>
+  </xso:template>
+
+  </xso:stylesheet>
   
+</xsl:template>
   
-  <xsl:template match="@*|node()">
-    <xsl:copy>
-      <xsl:apply-templates select="@*|node()"/>
-    </xsl:copy>
-  </xsl:template>
+
+
+<xsl:template match="xhtml:*">
+  <xsl:element name="{local-name()}">
+    <xsl:apply-templates select="@*|node()"/>
+  </xsl:element>
+</xsl:template>
+
+
+<xsl:template match="menu:message">
+  <xsl:attribute name="title">
+    <xsl:value-of select="."/>
+  </xsl:attribute>
+</xsl:template>
+
   
+<xsl:template match="@*|node()">
+  <xsl:copy>
+    <xsl:apply-templates select="@*|node()"/>
+  </xsl:copy>
+</xsl:template>
   
+
 </xsl:stylesheet>



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