|
|
#1 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2012
Device: kindle
|
Xpath question: Two Expressions for Level 1
Hey, guys and gals. I was wondering how I could combine //*[@class="chapter] with //h:h2 at Level 1 for the Table of Contents. Right now all my chapters are actually images, so I set the div class to chapter. And the compiler picks them up just fine. But I also have a glossary that is a regular h2 tag. I can't seem to figure out how to combine the expressions in Calibre. Any help would be appreciated. Thanks.
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,616
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
//*[@class="chapter]|//h:h2
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2012
Device: kindle
|
Great. Thanks! So simple.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need help with XPath | NASCARaddicted | ePub | 13 | 02-20-2015 07:04 AM |
| Xpath TOC Expression | Agama | Calibre | 2 | 07-12-2010 03:24 AM |
| XPath question | krischik | Calibre | 0 | 01-16-2010 09:22 AM |
| XPath Help and Pagebreak | emellaich | Calibre | 3 | 07-28-2009 03:17 PM |
| XPath query | amjbrown | Calibre | 2 | 05-10-2009 07:04 PM |