I'm converting a few books to go on my kindle, and I'm trying to get the chapters set up the way I want. One thing I'm noticing is that Calibre seems to use a slightly different flavor of xpath than what I'm used to. Where I would write
Code:
//p[matches(., '^[A-Z ]+$')]
, Calibre seems to respond to things in the form
Code:
//h:p[re:test(., '[A-Z]+')]
re:test seems to behave differently than matches. Is there any documentation on re:test, or anything anyone can tell me that might enhance my googling abilities?
The regular espression I'm trying to use that works with matches but not with re:test follows:
Code:
/h:p[re:test(., '^[A-Z]+ [A-Z ]+$')]