-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
issue a warning when landmarks anchors are not unique // refs #493
- Loading branch information
Showing
3 changed files
with
58 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
src/test/resources/30/single/nav/invalid/nav-landmarks-duplicates.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<?oxygen RNGSchema="../../../src/schema/epub-nav-30.rnc" type="compact"?> | ||
<?oxygen SCHSchema="../../../src/schema/epub-xhtml-30.sch"?> | ||
<?oxygen SCHSchema="../../../src/schema/epub-nav-30.sch"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops"> | ||
<head></head> | ||
<body> | ||
|
||
<nav epub:type="toc" id="toc"> | ||
<!-- the navMap --> | ||
<h1>Table of contents</h1> | ||
<ol> | ||
<li><a href="chap1.xhtml">Chapter 1</a> | ||
<ol> | ||
<li><a href="chap1.1.xhtml">arbitrary XHTML Phrasing content</a></li> | ||
<li><a href="chap1.2.xhtml">arbitrary XHTML Phrasing content</a></li> | ||
</ol> | ||
</li> | ||
<li><a href="chap1.xhtml">Chapter 2</a></li> | ||
</ol> | ||
</nav> | ||
|
||
<nav epub:type="landmarks"> | ||
<!-- the guide --> | ||
<h2>Guide</h2> | ||
<ol> | ||
<li><a epub:type="toc" href="#toc">Table of Contents</a></li> | ||
<li><a epub:type="loi" href="content.html#loi">List of Illustrations</a></li> | ||
<li><a epub:type="bodymatter" href="content.html#bodymatter">Start of Content</a></li> | ||
<li><a epub:type="loi" href="content.html#loi">List of Illustrations</a></li> | ||
</ol> | ||
</nav> | ||
|
||
</body> | ||
</html> |