forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nicola...@apache.org
Subject svn commit: rev 21345 - in forrest/trunk/src/core/context/skins: common/xslt/html krysalis-site/xslt/html
Date Wed, 16 Jun 2004 13:38:21 GMT
Author: nicolaken
Date: Wed Jun 16 06:38:20 2004
New Revision: 21345

Modified:
   forrest/trunk/src/core/context/skins/common/xslt/html/site2xhtml.xsl
   forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl
Log:
Fix: 

krysalis-site: minitoc config in skinconf not working  (FOR-176) 

Modified: forrest/trunk/src/core/context/skins/common/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/common/xslt/html/site2xhtml.xsl	(original)
+++ forrest/trunk/src/core/context/skins/common/xslt/html/site2xhtml.xsl	Wed Jun 16 06:38:20
2004
@@ -276,7 +276,10 @@
 
   <xsl:template name="minitoc">  
     <xsl:param name="tocroot"/>
+    
+    
     <xsl:if test="count($tocroot/tocitem) >= $config/toc/@min-sections">
+    <xsl:if test="contains($config/toc/@location,'page')"> 
       <ul class="minitoc">
         <xsl:for-each select="$tocroot/tocitem">
           <li>
@@ -291,6 +294,7 @@
           </li>
         </xsl:for-each>
       </ul>
+    </xsl:if>
     </xsl:if>
   </xsl:template>
 

Modified: forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl
==============================================================================
--- forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl	(original)
+++ forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/site2xhtml.xsl	Wed Jun 16
06:38:20 2004
@@ -476,7 +476,8 @@
             <xsl:when test="span/@class='sel'">
               <div class="menupage">
                 <div class="menupagetitle"><xsl:value-of select="span" /></div>
-                <xsl:if test="//tocitems/tocitem"> 
+                <xsl:if test="//tocitems/tocitem and contains($config/toc/@location,'dd')">

+                <xsl:value-of select="$config/toc/@location"/>
                   <div class="menupageitemgroup">
                       <xsl:for-each select = "//tocitems/tocitem">
                         <div class="menupageitem">

Mime
View raw message