Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sandersk opened this issue Jun 5, 2015 · 0 comments
Open

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

sandersk opened this issue Jun 5, 2015 · 0 comments
Labels

Comments

@sandersk
Copy link
Contributor

sandersk commented Jun 5, 2015

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.

@sandersk sandersk added the bug label Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant