|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 70
Karma: 712
Join Date: Dec 2008
Device: Sony PRS-505/iPod Touch
|
Table of contents problems
I'm trying to link to files with anchors in my table of contents. I have something like this somewhere in a book2.xhtml file:
Code:
<a name="chap12">Chapter 12</a> Code:
<navPoint id="toc22" playOrder="22">
<navLabel>
<text>Chapter 12</text>
</navLabel>
<content src="book2.xhtml#chap12"/>
</navPoint>
|
|
|
|
|
|
#2 |
|
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,571
Karma: 20150435
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
The "name" attribute is not valid in XHTML, use "id" instead, and not in an anchor element (<a>), i.e.:
Code:
<h1 id="chap12">Chapter 12</h1> |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 70
Karma: 712
Join Date: Dec 2008
Device: Sony PRS-505/iPod Touch
|
Thank you, that did the trick. It seems to work well on my Sony.
The reason I need anchors is that I don't want to split my chapters into different xhtml files. I don't want the chapters to appear on a new page each time. Is there a way to do this with split chapters? That way I could avoid using anchors. |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding Table of Contents to ePub problems... | cates | Calibre | 2 | 10-10-2010 05:18 PM |
| Table of Contents | peterinnes | Sigil | 1 | 09-29-2010 04:03 AM |
| Problems with Table of Contents | davers | Sony Reader | 3 | 12-25-2008 10:02 PM |
| only the table of contents | wang960 | Sony Reader | 3 | 08-29-2008 01:45 PM |
| Creator Table of Contents | Nate the great | Kindle Formats | 5 | 07-10-2008 06:55 AM |