forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anto...@apache.org
Subject svn commit: r109430 - /forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl
Date Thu, 02 Dec 2004 02:10:00 GMT
Author: antonio
Date: Wed Dec  1 18:10:00 2004
New Revision: 109430

URL: http://svn.apache.org/viewcvs?view=rev&rev=109430
Log:
Compact code, format and remove trailing spaces
Modified:
   forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl

Modified: forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl
Url: http://svn.apache.org/viewcvs/forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl?view=diff&rev=109430&p1=forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl&r1=109429&p2=forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl&r2=109430
==============================================================================
--- forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl	(original)
+++ forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl	Wed Dec  1 18:10:00 2004
@@ -22,43 +22,39 @@
 
 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
-  <xsl:import href="../../../common/xslt/html/book2menu.xsl"/>
-         
-  <xsl:template match="book">
-    <div class="menu">
-        <div class="body">
-          <xsl:apply-templates select="menu"/>
+    <xsl:import href="../../../common/xslt/html/book2menu.xsl"/>
+
+    <xsl:template match="book">
+        <div class="menu">
+            <div class="body">
+                <xsl:apply-templates select="menu"/>
+            </div>
+        </div>
+        <div class="strut">
+            <xsl:text> </xsl:text>
+        </div>
+    </xsl:template>
+
+    <xsl:template match="menu-item[@type='hidden']"/>
+
+    <xsl:template match="menu | menu-item">
+        <div>
+            <a href="{@href}">
+                <xsl:value-of select="@label"/>
+            </a>
+            <xsl:apply-templates/>
         </div>
-    </div>
-    
-    <div class="strut">&#160;</div>
-  </xsl:template>
-
-  <xsl:template match="menu">
-    <div>
-      <a href="{@href}"><xsl:value-of select="@label"/></a>
-      <xsl:apply-templates/>
-    </div>
-  </xsl:template>
-
-  <xsl:template match="menu-item[@type='hidden']"/>
-
-  <xsl:template match="menu-item">
-    <div>
-      <a href="{@href}"><xsl:value-of select="@label"/></a>
-      <xsl:apply-templates/>
-    </div>
-  </xsl:template>
-  
-  <xsl:template name="selected">
-    <div class="selfref">
-      <xsl:value-of select="@label"/>
-      <xsl:apply-templates/>
-    </div>
-  </xsl:template>
-
-  <xsl:template name="print-external">
-      <xsl:apply-imports/>
-  </xsl:template>
-  
+    </xsl:template>
+
+    <xsl:template name="selected">
+        <div class="selfref">
+            <xsl:value-of select="@label"/>
+            <xsl:apply-templates/>
+        </div>
+    </xsl:template>
+
+    <xsl:template name="print-external">
+        <xsl:apply-imports/>
+    </xsl:template>
+
 </xsl:stylesheet>

Mime
View raw message