You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by an...@apache.org on 2004/12/02 03:10:00 UTC

svn commit: r109430 - /forrest/trunk/main/webapp/skins/tigris/xslt/html/book2menu.xsl

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>