Below is an example <pageList> markup (that is valid per the NCX DTD) which can be used to mark up page numbers within ePub documents.
Note that <pageList> must be placed right after the required <navMap>, and must occur before the first optional <navList>. There may be one and only one <pageList> (but there can be any number of <navList> — of course, there can only be one <navMap>).
<pageList id="page-mapping"> <navLabel><text>Paper Edition Page Mapping</text></navLabel> <pageTarget id="page-iii" value="3" type="front" playOrder="82"> <navLabel><text>Page iii</text></navLabel> <content src="frontmatter.html#pageiii"/> </pageTarget> <!-- ... --> <pageTarget id="page-105" value="105" type="normal" playOrder="192"> <navLabel><text>Page 105</text></navLabel> <content src="chap5.html#page105"/> </pageTarget> </pageList>
Notes:
1. Currently there is an error in epubcheck 1.0.3 which says <pageList> must include both the id and class attributes, while they should be optional. Hopefully that bug will get fixed. The above markup includes the optional id (generally a good idea), but not the class so it will not validate to 1.0.3.
Continue reading “Marking Up Page Numbers in the EPUB NCX”