Skip to content

Bug in label.section.with.ancestors logic #192

@sandersk

Description

@sandersk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions