If toc or chapter xpaths select an attribute use that attribute in place of the element's text when creating the TOC. (ie --level1-toc //h:h1/@title )
Conversion: Allow getting text for entries int he Table of Contents from tag attributes. Fixes #1267837 [[Enhancement] option to always use title attribute for chapter titles in TOC](https://bugs.launchpad.net/calibre/+bug/1267837)