You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by br...@apache.org on 2004/03/23 20:05:37 UTC

svn commit: rev 9723 - in xml/forrest/trunk/src/core/context/skins: common/xslt/fo common/xslt/svg forrest-css/xslt/html krysalis-site/xslt/html tigris-style/xslt/html

Author: brondsem
Date: Tue Mar 23 11:05:35 2004
New Revision: 9723

Modified:
   xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl
   xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl
   xml/forrest/trunk/src/core/context/skins/forrest-css/xslt/html/document2html.xsl
   xml/forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/document2html.xsl
   xml/forrest/trunk/src/core/context/skins/tigris-style/xslt/html/document2html.xsl
Log:
toc 'level' to 'max-depth' attribute name change into all skins

Modified: xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/common/xslt/fo/document2fo.xsl	Tue Mar 23 11:05:35 2004
@@ -23,7 +23,7 @@
   <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
   <xsl:variable name="config" select="document($config-file)/skinconfig"/>
   <!-- Get the section depth to use when generating the minitoc (default is 2) -->
-  <xsl:variable name="toc-max-depth" select="number($config/toc/@level)"/>
+  <xsl:variable name="toc-max-depth" select="number($config/toc/@max-depth)"/>
 
   <!-- The page size to be used -->
   <xsl:variable name="pagesize" 

Modified: xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/common/xslt/svg/document2svg.xsl	Tue Mar 23 11:05:35 2004
@@ -21,7 +21,7 @@
   <xsl:param name="config-file" select="'../../../../skinconf.xml'"/>
   <xsl:variable name="config" select="document($config-file)/skinconfig"/>
   <!-- Get the section depth to use when generating the minitoc (default is 2) -->
-  <xsl:variable name="toc-max-depth" select="number($config/toc/@level)"/>
+  <xsl:variable name="toc-max-depth" select="number($config/toc/@max-depth)"/>
 
   <xsl:param name="numbersections" select="'true'"/>
 

Modified: xml/forrest/trunk/src/core/context/skins/forrest-css/xslt/html/document2html.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/forrest-css/xslt/html/document2html.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/forrest-css/xslt/html/document2html.xsl	Tue Mar 23 11:05:35 2004
@@ -63,7 +63,7 @@
   </xsl:template>
 
   <xsl:template match="body">
-    <xsl:if test="$max-depth&gt;0 and not($notoc='true')" >
+    <xsl:if test="$config/toc/@max-depth&gt;0 and not($notoc='true')" >
       <xsl:call-template name="minitoc">
         <xsl:with-param name="tocroot" select="."/>
         <xsl:with-param name="depth">1</xsl:with-param>
@@ -94,7 +94,7 @@
     <ul>
       <xsl:for-each select="$tocroot/section">
         <xsl:call-template name="toclink"/>
-        <xsl:if test="$depth&lt;$max-depth">
+        <xsl:if test="$depth&lt;$config/toc/@max-depth">
           <xsl:call-template name="minitoc">
             <xsl:with-param name="tocroot" select="."/>
             <xsl:with-param name="depth" select="$depth + 1"/>          

Modified: xml/forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/document2html.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/document2html.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/krysalis-site/xslt/html/document2html.xsl	Tue Mar 23 11:05:35 2004
@@ -77,7 +77,7 @@
 
   <xsl:template match="body">
 
-    <xsl:if test="section and $max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'menu')">
+    <xsl:if test="section and $config/toc/@max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'menu')">
       <toc>
         <xsl:for-each select="section">
           <tocc>
@@ -106,7 +106,7 @@
       </toc>
     </xsl:if>
     
-   <xsl:if test="$max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'page')" >
+   <xsl:if test="$config/toc/@max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'page')" >
       <xsl:call-template name="minitoc">
         <xsl:with-param name="tocroot" select="."/>
         <xsl:with-param name="depth">1</xsl:with-param>

Modified: xml/forrest/trunk/src/core/context/skins/tigris-style/xslt/html/document2html.xsl
==============================================================================
--- xml/forrest/trunk/src/core/context/skins/tigris-style/xslt/html/document2html.xsl	(original)
+++ xml/forrest/trunk/src/core/context/skins/tigris-style/xslt/html/document2html.xsl	Tue Mar 23 11:05:35 2004
@@ -94,7 +94,7 @@
 
   <xsl:template match="body">
 
-    <xsl:if test="section and $max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'menu')">
+    <xsl:if test="section and $config/toc/@max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'menu')">
       <toc>
         <xsl:for-each select="section">
           <tocc>
@@ -123,7 +123,7 @@
       </toc>
     </xsl:if>
     
-   <xsl:if test="$max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'page')" >
+   <xsl:if test="$config/toc/@max-depth&gt;0 and not($notoc='true') and contains($minitoc-location,'page')" >
       <xsl:call-template name="minitoc">
         <xsl:with-param name="tocroot" select="."/>
         <xsl:with-param name="depth">1</xsl:with-param>