Note that there are some explanatory texts on larger screens.

plurals
  1. PODocbook: ToC not generated in chunked html for a set of books
    text
    copied!<p>I'm writing some books in Docbook 5.0. I'm including them in a set as follows:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;set&gt; &lt;title&gt;The Vision Series&lt;/title&gt; &lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="developer/devenv/devenv.xml" parse="xml" /&gt; &lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="developer/system/system.xml" parse="xml" /&gt; &lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="developer/application/application.xml" parse="xml" /&gt; &lt;xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="developer/dom/dom.xml" parse="xml" /&gt; &lt;/set&gt; </code></pre> <p>For transforming the XML in html, I'm using the lastest style sheets (1.76.1) from docbook. I have a very slightly customized style sheet for generating a single html (mydocbook.xsl):</p> <pre><code>&lt;?xml version='1.0'?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt; &lt;xsl:import href="../../../../bin/etc/xsl/docbook-xsl-1.76.1/html/docbook.xsl"/&gt; &lt;xsl:param name="html.stylesheet" select="'books.css'"/&gt; &lt;xsl:param name="section.autolabel" select="1"/&gt; &lt;xsl:param name="chapter.autolabel" select="1"/&gt; &lt;xsl:param name="chunk.section.depth" select="0"/&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>This works just fine, and I'm getting the ToCs for the set, the books and higher level sections, as expected. Now, following indications at <a href="http://www.sagehill.net/docbookxsl/ChunkingCustomization.html" rel="nofollow">http://www.sagehill.net/docbookxsl/ChunkingCustomization.html</a>, I created another style sheet for the chunked version (mychunk.xsl), as follows:</p> <pre><code>&lt;?xml version='1.0'?&gt; &lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"&gt; &lt;xsl:import href="mydocbook.xsl"/&gt; &lt;xsl:import href="../../../../bin/etc/xsl/docbook-xsl-1.76.1/html/chunk-common.xsl"/&gt; &lt;xsl:include href="../../../../bin/etc/xsl/docbook-xsl-1.76.1/html/chunk-code.xsl"/&gt; &lt;/xsl:stylesheet&gt; </code></pre> <p>When applying this style sheet, I get the expected chunking but absolutely <strong>no ToC gets generated</strong> (no ToC for the set, no ToC for the books, no ToC for the higher level sections).</p> <p>Does anybody see what I'm doing wrong? I could add messages in the xsl files, but I don't know where to add them to diagnose the problem. Any hint about how to debug this problem with messages?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload