ncx檔案是epub電子書的又一個核心檔案,用於製作電子書的目錄,其檔案的命名通常為toc.ncx。
ncx檔案是一個XML檔案,該標準由DAISY Consortium發布(參見http://www.daisy.org)。
下列是一個toc.ncx檔案的執行個體,其中紅色部分為必需。<navMap>元素列出了目錄的名稱和連結地址。其子項目<navPoint>支援嵌套。
<?xml version="1.0" encoding="utf-8"?><!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" "http://www.daisy.org/z3986/2005/ncx-2005-1.dtd"><ncx version="2005-1" xmlns="http://www.daisy.org/z3986/2005/ncx/"> <head> <!-- The following four metadata items are required for all NCX documents, including those conforming to the relaxed constraints of OPS 2.0 --> <meta name="dtb:uid" content=" "/> <meta name="dtb:depth" content="-1"/> <meta name="dtb:totalPageCount" content="0"/> <meta name="dtb:maxPageNumber" content="0"/> </head> <docTitle> <text>數字檔案館理論與技術研究</text> </docTitle> <docAuthor> <text>金更達</text> </docAuthor> <navMap> <navPoint id="navpoint-1" playOrder="1"> <navLabel> <text>封面</text> </navLabel> <content src="cover.htm"/> </navPoint> <navPoint id="navpoint-2" playOrder="2"> <navLabel> <text>序</text> </navLabel> <content src="forword.xhtml"/> </navPoint> <navPoint id="navpoint-3" playOrder="3"> <navLabel> <text>目錄</text> </navLabel> <content src="toc.xhtml"/> </navPoint> <navPoint id="navpoint-4" playOrder="4"> <navLabel> <text>第一章緒論</text> </navLabel> <content src="chap01.xhtml"/> <navPoint id="navpoint-5" playOrder="5"> <navLabel> <text>第一節數字檔案館:新世紀檔案事業的發展方向</text> </navLabel> <content src="chap01.xhtml#_Toc169344163"/> </navPoint> <navPoint id="navpoint-6" playOrder="6"> <navLabel> <text>第二節數字檔案館:新世紀檔案工作的嚴峻挑戰</text> </navLabel> <content src="chap01.xhtml#_Toc169344164"/> </navPoint> <navPoint id="navpoint-7" playOrder="7"> <navLabel> <text>第三節數字檔案館系統研究的理論價值與現實意義</text> </navLabel> <content src="chap01.xhtml#_Toc169344165"/> </navPoint> </navPoint> </navMap></ncx>
原文地址