Red Hat Bugzilla – Bug 1265487
DocBook 5 drupal-book ignores chunk_section_depth
Last modified: 2016-05-26 09:21:44 EDT
Description of problem:
DocBook 5.0 drupal-book builds ignore whatever the chunk_section_depth setting is and always chunk at the chapter/part/appendix level.
Version-Release number of selected component (if applicable):
4.3.2 (I imagine this has existed since DocBook 5.0 support was added)
Steps to Reproduce:
1. Create a DocBook 5.0 book: publican create --name "Test" --dtdver "5.0"
2. Set the chunk_section_depth to say "1"
3. Build using the drupal-book format: publican build --langs en-US --formats drupal-book
4. Inspect the files created under tmp/en-US/drupal-book/ and notice the aren't any files for the top level sections (there should be two as per Chapter.xml).
The chunk_section_depth is ignored and chunking is always done at the chapter level.
Chunking should respect the chunk_section_depth value in publican.cfg
This occurs because the chunk xsl template in drupal-book.xsl looks to have been copied from the non namespaced version of the stylesheets. Adding the "d:" namespace prefix before each section/sect* in the chunk template appears to fix this issue (ie "ancestor::d:section").
Fixed up the missing namespace declarations.
7f39a6a..02e2e5c devel -> devel
This bug was accidentally moved from POST to MODIFIED via an error in automation, please see email@example.com with any questions