forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: svn commit: rev 36261 - in forrest/trunk/src/core/context/skins/pelt-dev: css xslt/html
Date Wed, 11 Aug 2004 23:56:06 GMT
thorsten@apache.org wrote:
> Author: thorsten
> Date: Wed Aug 11 16:28:16 2004
> New Revision: 36261
> 
> Modified:
>    forrest/trunk/src/core/context/skins/pelt-dev/css/screen.css
>    forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/document2html.xsl
>    forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl
> Log:
> added the toc in page location
> 
> 
> 
> Modified: forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl
> ==============================================================================
> --- forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl	(original)
> +++ forrest/trunk/src/core/context/skins/pelt-dev/xslt/html/site2xhtml.xsl	Wed Aug 11
16:28:16 2004
> @@ -465,6 +465,43 @@
>        </div>
>      </xsl:if>
>    </xsl:template>
> +<xsl:template match="div[@id='skinconf-toc-page']">
> +    <xsl:if test="$config/toc">
> +      <xsl:if test="contains($minitoc-location,'page')">
> +        <xsl:if test="count(//tocitems/tocitem) >= $config/toc/@min-sections">
> +          <xsl:call-template name="minitoc">
> +            <xsl:with-param name="tocroot" select="//tocitems"/>
> +          </xsl:call-template>
> +        </xsl:if>
> +      </xsl:if>
> +    </xsl:if>
> +  </xsl:template>
> +
> +  <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')"> 
> +	<div id="minitoc-area">
> +      <ul id="minitoc">
> +        <xsl:for-each select="$tocroot/tocitem">
> +          <li>
> +            <a href="{@href}">
> +              <xsl:value-of select="@title"/>
> +            </a>
> +            <xsl:if test="@level&lt;//skinconfig/toc/@max-depth+1">
> +              <xsl:call-template name="minitoc">
> +                <xsl:with-param name="tocroot" select="."/>
> +              </xsl:call-template>
> +            </xsl:if>
> +          </li>
> +        </xsl:for-each>
> +      </ul>
> +	</div>
> +    </xsl:if>
> +    </xsl:if>
> +  </xsl:template>
>    <xsl:template match="node()|@*" priority="-1">
>      <xsl:copy>
>        <xsl:apply-templates select="@*"/>
> 

Why did I had to copy that from common to pelt-dev to make the TOC work?

Any ideas?

Cheers
thorsten

Mime
View raw message