![]() |
#1 |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Oct 2011
Device: iPhone
|
class="none" vs class="none1"
Greetings.
I am trying to use Calibre to convert an e-book with lousy chapter marks. A chapter is marked with <span class="none"> However, there are other parts of the book (italic text) which are marked with <span class="none1"> I'm trying to get an XPath that recognizes the difference. //h:span[re:test(@class, "none", "i")] matches both sets //h:span[re:test(@class, "none\b", "i")] matches both sets //h:span[re:test(@class, "none$", "i")] matches nothing //h:span[re:test(@class, '"none"', "i")] matches nothing //h:span[re:test(@class, "["]none["]", "i")] is an invalid XPath //*[@class="none"] matched nothing //h:span[@class="none"] matched nothing How can I properly find my chapters? Thanks. --hymie! |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,571
Karma: 145863177
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Enthusiast
![]() Posts: 27
Karma: 10
Join Date: Oct 2011
Device: iPhone
|
![]() Quote:
Thanks. --hymie! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Value of Attribute "Class" is Invalid Error | TFaire | ePub | 2 | 09-23-2011 11:25 AM |
Feature Request: configurable space setting for "Insert blank line" in "Look & Feel" | therealjoeblow | Calibre | 15 | 07-25-2011 03:14 PM |
How do you remove class="whitespace"? | greenlees | Conversion | 8 | 07-03-2011 02:54 AM |
Changing or removing <div class="calibrenavbar"> | ptsefton | Recipes | 3 | 05-28-2011 08:30 AM |