Skip to content

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

Open
@sandersk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions