View Single Post
Old 04-24-2020, 06:54 PM   #6
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,198
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by jackie_w View Post
You'd need to try it. I'm afraid XPath expressions are not my strong point

I think I've used this one in the past:
Code:
//h:h1|//h:h2
Yes that works.

I have also used something like this to match the heading class attribute when chapter heading used a tag other than an h*, e.g. a p tag.
Code:
//*[re:test(@class, "chapter|chapter1", "i")]
bernie

Last edited by gbm; 04-24-2020 at 06:56 PM.
gbm is offline   Reply With Quote