Quantcast
Channel: MobileRead Forums
Viewing all articles
Browse latest Browse all 50080

Concat 2 xpath results

$
0
0
Hello,

My start of my chapter looks like this. This I cannot change.
<p class="Chapter">Chapter 1 </p>
<p class="ChapterName">ABCDEF</p>

And when I make the TOC, I can only match one of them and have to fill the other by hand.
This has bugged me for a long time. Is there a way to concatenate the results from 2 xpath?

I want something like this
concat(//*[contains(@class, 'Chapter')], //*[contains(@class, 'ChapterName')])
would return No items found: No items were found that could be added to the Table of Contents.

Thanks so much for reading.

Viewing all articles
Browse latest Browse all 50080

Latest Images

Trending Articles



Latest Images