Quote:
Originally Posted by cybmole
yes, that often works but not always - it's either because a book has a chapters within parts / sections structure or because the book is littered with span tags, in the same html line that contains the chapter numbers - i am not yet sure which.
reading your explanation again, maybe the logic engine sees SOME h2 tags -say on the section headers, & disables itself before the chapter numbers are processed ?
PS thanks for explaining how the preprocess & xpath steps interact.
|
It also does a check of the overall length of the book - there needs to be a certain amount of existing headers based on the length of the book before it will disable itself.
If you want open a bug with your book that's not working - I can see if I can improve the function, but I can't guarantee anything - there is an extremely wide range of html out there, some cases can't be easily handled in a general function.