View Single Post
Old 08-28-2019, 04:11 PM   #1
mjcatt
Junior Member
mjcatt began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jul 2018
Device: kindle voyage, Moon+Reader Pro
Help with Create TOC from XPath

I'm not great with XPath, but I usually manage to stumble my way for what I need. However, I'm out of my league on this one and I'm hoping someone experienced can help.

I have a number of books that use the 'title' attribute in headers to specify the text that should be used in generating the TOC. Here's an example:

<h2 title='Text to place in TOC'>Text that goes into book itself</h2>

What XPath expression should be used in 'Create TOC from XPath' to return the value of the title attribute (i.e., 'Text to place in TOC')?

Thanks in advance for your help!
mjcatt is offline   Reply With Quote