Concat 2 xpath results
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.
|