docbook-xsl Chunked HTML table of contents for each chapter

别来无恙 提交于 2019-12-11 02:59:56

问题


I've been reading the documentation all night and still can't figure it out.

How do I get the chunked output to include a ToC on the "front-page" of each chapter (and larger parts)?

Both the DocBook-XSL documentation and the online HTML version of "DocBook XSL: The Complete Guide" implement this, so at least I'm not entirely insane as far as it being at least possible…somehow.


回答1:


The solution was staring me square in the face, I couldn't see the proverbial forest for all the trees I suppose.

Obviously, the parameter that controls this would be generate.toc, so after modifying my stylesheet to include—

<xsl:param name="generate.toc">
  appendix  toc
  book      toc,title
  chapter   toc
  part      toc
</xsl:param>

—it all rendered beautifully as one'd expect…



来源:https://stackoverflow.com/questions/22887390/docbook-xsl-chunked-html-table-of-contents-for-each-chapter

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!