-
Notifications
You must be signed in to change notification settings - Fork 100
Open
Labels
Description
Bug in label.section.with.ancestors logic for section label.markup template:
https://github.com/oreillymedia/HTMLBook/blob/master/htmlbook-xsl/common.xsl#L87
Template calls get-label-from-data-type, which does numeration with level="any", without a from attribute, so descendant sections of chapters/appendixes/etc. get absolute numbering that starts at the beginning of the book, rather than numeration restarting with each new parent section element.
Logic should pass along a from value to get-label-from-data-type, which can then be used in <xsl:number> declarations to ensure that numbering resets at each new parent section.