View Single Post
Old 01-11-2011, 01:52 PM   #21
cybmole
Wizard
cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.cybmole ought to be getting tired of karma fortunes by now.
 
Posts: 3,720
Karma: 1759970
Join Date: Sep 2010
Device: none
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

Last edited by cybmole; 01-11-2011 at 01:55 PM.
cybmole is offline   Reply With Quote