Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XHTML: generate.toc string can't suppress toc title for <part> #63

Closed
daniel-so opened this issue Mar 28, 2018 · 0 comments
Closed

XHTML: generate.toc string can't suppress toc title for <part> #63

daniel-so opened this issue Mar 28, 2018 · 0 comments

Comments

@daniel-so
Copy link

I changed the generate.toc string to "appendix toc article/appendix nop article toc,title book toc,title chapter toc part toc preface toc qandadiv toc qandaset toc reference toc section toc set toc". That should make a ToC appear at the beginning of a Part, but without the title "Table of Contents." However, the title continues to appear.

I've verified that it is because this template in division.xsl does not pass the toc.title.p parameter (see below):

===

<xsl:template match="part">
<xsl:call-template name="id.warning"/>

<xsl:call-template name="part.titlepage"/>

<xsl:variable name="toc.params">
  <xsl:call-template name="find.path.params">
    <xsl:with-param name="table" select="normalize-space($generate.toc)"/>
  </xsl:call-template>
</xsl:variable>
<xsl:if test="not(partintro) and contains($toc.params, 'toc')">
  <xsl:call-template name="division.toc">
    <!-- missing here:
            <xsl:with-param name="toc.title.p" select="contains($toc.params, 'title')"/>
    -->
  </xsl:call-template>
</xsl:if>
<xsl:apply-templates/>

===

If you look at the corresponding templates for "book," "set" , "chapter" (in component.xsl) etc., that line is always there, and toc.title.p is always passed. The same issue exists in the same templates for other outputs. I think this is a bug for the XSLT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants