Quote:
Originally Posted by cybmole
thanks for the extra explanation, but I still can't figure how i get exactly 4 in every chapter. FWIW all 4 toc entries jump to same chapter start.
let me post one sample chapter as xhtml sourc tell me what I'm missing here please
|
Your regex for whatever reason is matching four times. Each time it matches it generates a new TOC entry (to the same place). This is standard behavior for multiple xpath matches. Why it's matching multiple times is not clear, but since you've got a working solution I'd just stay away from what didn't work.