|
429 | 429 | </xsl:template>
|
430 | 430 |
|
431 | 431 | <!-- TOC Tree -->
|
432 |
| -<xsl:template match="contentsTree" name="contentsTree"> |
| 432 | +<xsl:template match="contents" name="contents"> |
433 | 433 | <xsl:param name="depth" select="0"/>
|
434 | 434 | <xsl:param name="maxdepth">
|
435 | 435 | <xsl:choose>
|
|
463 | 463 | <xsl:for-each select="document($doc_self)/devbook/include">
|
464 | 464 | <count value="{count(document(concat($path, @href, 'text.xml'))//*[name()=$extraction])}"
|
465 | 465 | path="{concat($path, @href)}">
|
466 |
| - <xsl:call-template name="contentsTree"> |
| 466 | + <xsl:call-template name="contents"> |
467 | 467 | <xsl:with-param name="depth" select="$depth + 1"/>
|
468 | 468 | <xsl:with-param name="maxdepth" select="$maxdepth"/>
|
469 | 469 | <xsl:with-param name="path" select="concat($path, @href)"/>
|
|
479 | 479 | <ul>
|
480 | 480 | <xsl:for-each select="document($doc_self)/devbook/include">
|
481 | 481 | <xsl:variable name="extraction_counter_node">
|
482 |
| - <xsl:call-template name="contentsTree"> |
| 482 | + <xsl:call-template name="contents"> |
483 | 483 | <xsl:with-param name="depth" select="$depth + 1"/>
|
484 | 484 | <xsl:with-param name="maxdepth" select="$maxdepth"/>
|
485 | 485 | <xsl:with-param name="path" select="concat($path, @href)"/>
|
|
513 | 513 | </xsl:for-each>
|
514 | 514 | </ul>
|
515 | 515 | </xsl:if>
|
516 |
| - <xsl:call-template name="contentsTree"> |
| 516 | + <xsl:call-template name="contents"> |
517 | 517 | <xsl:with-param name="depth" select="$depth + 1"/>
|
518 | 518 | <xsl:with-param name="maxdepth" select="$maxdepth"/>
|
519 | 519 | <xsl:with-param name="path" select="concat($path, @href)"/>
|
|
637 | 637 | <xsl:if test="/devbook/include">
|
638 | 638 | <li class="divider"><xsl:comment/></li>
|
639 | 639 | <!-- List any sub-documents included at first level.
|
640 |
| - We cannot call "contentsTree" directly, because it would |
| 640 | + We cannot call "contents" directly, because it would |
641 | 641 | insert another "ul" element. So, assign it to a variable,
|
642 | 642 | then copy only the "li" nodes. -->
|
643 | 643 | <xsl:variable name="contents">
|
644 |
| - <xsl:call-template name="contentsTree"> |
| 644 | + <xsl:call-template name="contents"> |
645 | 645 | <xsl:with-param name="maxdepth" select="1"/>
|
646 | 646 | </xsl:call-template>
|
647 | 647 | </xsl:variable>
|
|
0 commit comments