View Single Post
Old 07-21-2009, 02:30 AM   #7
ronin712
Junior Member
ronin712 began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2009
Device: stanza
Thanks a lot for your help.

I understand xpaths, but I don't know how you apply them to a rtf file. Is that documented somewhere?

All the chapters in my rtf file start with a line that says "Chapter 1", etc. Just experimenting, I tried the following xpath, but it throws a conversion error if I use a star instead of a specific tag. But if I give it a specific tag, it doesn't work (since I have no idea what tag matches an arbitrary line of text).

//*[re:test(., 'chapter [0-9]*', 'i')]
ronin712 is offline   Reply With Quote