update:
here's where I am stuck on syntax.
I want to pick out lines like this which are chapter starts, as well as still picking out sections and parts.
Code:
<p class="calibre8"><span class="calibre3 bold">7</span></p>
So I take the default structure detection expression & change the ending from class = chapter to class = bold. that is still valid & I can test it, but it finds far too much stuff, as expected.
so i try to amend the ending to test for both class = bold AND values are digits e.g.
Code:
//*[((name()='h1' or name()='h2') and re:test(., 'chapter|part\s+', 'i')) or (@class = 'bold' and re:test (\d*))]
i try lots of permutations of how many brackets to use & where to place them but I cannot get past the syntax checker