[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Chunking dedication element for epub
I think you are running into the problem of too many import levels when customizing chunked HTML output. Chunking relies on xsl:import to separate the actions of chunking from the actions of formatting each chunk element. Because the epub/docbook.xsl stylesheet is already a customization layer, importing it and changing things adds another level of import precedence that can mess things up. This section in my book describes the contraints on customizing chunked HTML:
The easiest way to avoid adding another level of import precedence to the epub stylesheet is to replace it, not import it. That is, copy epub/docbook.xsl as your customization layer and add your templates there. Because epub/docbook.xsl imports or includes the xhtml-1_1 stylesheet files, you'll probably need to adjust those paths to make it work unless you put your customization file in with the distribution files. If you are customizing both chunking behavior and formats, you may need to further divide your customization into two parts as described in my book.
The epub3 stylesheet under development will separate the templates into modules to make it easier to customize.