From: <pau...@us...> - 2011-01-24 02:06:56
|
Author: paultremblay Date: 2011-01-24 03:06:49 +0100 (Mon, 24 Jan 2011) New Revision: 6657 Added: trunk/sandbox/paultremblay/docs/xsl/toc.xsl Modified: trunk/sandbox/paultremblay/docs/xsl/document_stylesheet.xsl Log: Added templates to document toc; toc.xsl documents the xsl stylesheet with the same name. Modified: trunk/sandbox/paultremblay/docs/xsl/document_stylesheet.xsl =================================================================== --- trunk/sandbox/paultremblay/docs/xsl/document_stylesheet.xsl 2011-01-24 02:05:59 UTC (rev 6656) +++ trunk/sandbox/paultremblay/docs/xsl/document_stylesheet.xsl 2011-01-24 02:06:49 UTC (rev 6657) @@ -9,6 +9,7 @@ <xsl:include href="page.xsl"/> <xsl:include href="bibliographic_fields.xsl"/> <xsl:include href="front_matter.xsl"/> + <xsl:include href="toc.xsl"/> <xsl:include href="bullet_list.xsl"/> <xsl:include href="enumerated_list.xsl"/> <xsl:include href="option_list.xsl"/> @@ -76,6 +77,15 @@ <xsl:call-template name="make-title"> <xsl:with-param name="level">3</xsl:with-param> + <xsl:with-param name="text">TOC Matter Attribute Sets</xsl:with-param> + </xsl:call-template> + <block> + Attribute sets for the TOC. + </block> + <xsl:apply-templates select="document('../../xsl_fo/toc.xsl')/xsl:stylesheet"/> + + <xsl:call-template name="make-title"> + <xsl:with-param name="level">3</xsl:with-param> <xsl:with-param name="text">bullet list</xsl:with-param> </xsl:call-template> <block> Added: trunk/sandbox/paultremblay/docs/xsl/toc.xsl =================================================================== --- trunk/sandbox/paultremblay/docs/xsl/toc.xsl (rev 0) +++ trunk/sandbox/paultremblay/docs/xsl/toc.xsl 2011-01-24 02:06:49 UTC (rev 6657) @@ -0,0 +1,89 @@ +<xsl:stylesheet + xmlns:xsl="http://www.w3.org/1999/XSL/Transform" + xmlns:fo="http://www.w3.org/1999/XSL/Format" + version="1.1"> + + <!-- $Id$ --> + + + <xsl:template match= "xsl:attribute-set[@name='toc-title-block']" priority="3"> + <xsl:call-template name="before-desc"> + <xsl:with-param name="fo">fo:block</xsl:with-param> + <xsl:with-param name="docutils">topic[@classes = "contents"]/title</xsl:with-param> + </xsl:call-template> + <block> + Formats the block for the title for the TOC. + </block> + </xsl:template> + + <xsl:template match= "xsl:attribute-set[@name='toc-entry-defaults']" priority="3"> + <xsl:call-template name="before-desc"> + <xsl:with-param name="fo">None</xsl:with-param> + <xsl:with-param name="docutils">None</xsl:with-param> + </xsl:call-template> + <block> + Sets up the defaults for the TOC entries. + </block> + </xsl:template> + + + <xsl:template match= "xsl:attribute-set[@name='toc-level1-block']" priority="3"> + <xsl:call-template name="before-desc"> + <xsl:with-param name="fo">fo:block</xsl:with-param> + <xsl:with-param name="docutils">topic[@classes = "contents"]/bullet_list/list_item/paragraph/</xsl:with-param> + <xsl:with-param name="inherits">toc-entry-defaults</xsl:with-param> + </xsl:call-template> + <block> + Formats the block for the level 1 table of contents entry. If a number exists, it is + formatted according to the parameter 'number-section1'. + </block> + </xsl:template> + + <xsl:template match= "xsl:attribute-set[@name='toc-level2-block']" priority="3"> + <xsl:call-template name="before-desc"> + <xsl:with-param name="fo">fo:block</xsl:with-param> + <xsl:with-param name="docutils">topic[@classes = "contents"]/bullet_list/list_item/bullet_list/list_item/paragraph/</xsl:with-param> + <xsl:with-param name="inherits">toc-entry-defaults</xsl:with-param> + </xsl:call-template> + <block> + Formats the block for the level 2 table of contents entry. If a number exists, it is + formatted according to the parameter 'number-section2'. + </block> + </xsl:template> + + <xsl:template match= "xsl:attribute-set[@name='toc-level3-block']" priority="3"> + <xsl:call-template name="before-desc"> + <xsl:with-param name="fo">fo:block</xsl:with-param> + <xsl:with-param name="docutils">topic[@classes = "contents"]/bullet_list/list_item/bullet_list/list_item/paragraph/etc.</xsl:with-param> + <xsl:with-param name="inherits">toc-entry-defaults</xsl:with-param> + </xsl:call-template> + <block> + Formats the block for the level 3 table of contents entry. If a number exists, it is + formatted according to the parameter 'number-section3'. + </block> + </xsl:template> + + <xsl:template match= "xsl:attribute-set[@name='toc-level4-block']" priority="3"> + <xsl:call-template name="before-desc"> + <xsl:with-param name="fo">fo:block</xsl:with-param> + <xsl:with-param name="docutils">topic[@classes = "contents"]/bullet_list/list_item/bullet_list/list_item/paragraph/etc.</xsl:with-param> + <xsl:with-param name="inherits">toc-entry-defaults</xsl:with-param> + </xsl:call-template> + <block> + Formats the block for the level 4 table of contents entry. If a number exists, it is + formatted according to the parameter 'number-section4'. + </block> + </xsl:template> + + <xsl:template match= "xsl:attribute-set[@name='toc-level5-block']" priority="3"> + <xsl:call-template name="before-desc"> + <xsl:with-param name="docutils">topic[@classes = "contents"]/bullet_list/list_item/bullet_list/list_item/paragraph/etc.</xsl:with-param> + <xsl:with-param name="inherits">toc-entry-defaults</xsl:with-param> + </xsl:call-template> + <block> + Formats the block for the level 5 table of contents entry. If a number exists, it is + formatted according to the parameter 'number-section5'. + </block> + </xsl:template> + +</xsl:stylesheet> Property changes on: trunk/sandbox/paultremblay/docs/xsl/toc.xsl ___________________________________________________________________ Added: svn:keywords + Author Date Id Revision Added: svn:eol-style + native |