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.
Bug in
label.section.with.ancestorslogic for sectionlabel.markuptemplate:https://github.com/oreillymedia/HTMLBook/blob/master/htmlbook-xsl/common.xsl#L87
Template calls
get-label-from-data-type, which does numeration withlevel="any", without a from attribute, so descendantsections 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
fromvalue toget-label-from-data-type, which can then be used in<xsl:number>declarations to ensure that numbering resets at each new parent section.