View Single Post
Old 01-03-2011, 08:33 AM   #11
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
Quote:
Originally Posted by cybmole View Post
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.
ldolse is offline   Reply With Quote