-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update ncx.rng schema to add fixed list of pageTarget type values // f…
…ixes #761
- Loading branch information
Showing
8 changed files
with
82 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
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
31 changes: 31 additions & 0 deletions
31
src/test/resources/20/expanded/invalid/ncx-pagetarget-type/EPUB/lorem.ncx
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,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ncx xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/" | ||
xmlns="http://www.daisy.org/z3986/2005/ncx/" | ||
version="2005-1" | ||
xml:lang="la"> | ||
<head> | ||
<meta name="dtb:uid" content="urn:uuid:9b30f91c-ab6c-4112-a30d-390957259458"/> | ||
<meta name="dtb:depth" content="1"/> | ||
<meta name="dtb:totalPageCount" content="0"/> | ||
<meta name="dtb:maxPageNumber" content="0"/> | ||
</head> | ||
<docTitle> | ||
<text>Lorem Ipsum</text> | ||
</docTitle> | ||
<navMap> | ||
<navPoint id="ch1" playOrder="1"> | ||
<navLabel> | ||
<text>I.</text> | ||
</navLabel> | ||
<content src="lorem.xhtml"/> | ||
</navPoint> | ||
</navMap> | ||
<pageList> | ||
<pageTarget type="body" playOrder="1"> | ||
<navLabel> | ||
<text>1</text> | ||
</navLabel> | ||
<content src="lorem.xhtml"/> | ||
</pageTarget> | ||
</pageList> | ||
</ncx> |
16 changes: 16 additions & 0 deletions
16
src/test/resources/20/expanded/invalid/ncx-pagetarget-type/EPUB/lorem.opf
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,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<package xmlns="http://www.idpf.org/2007/opf" version="2.0" unique-identifier="uid"> | ||
<metadata xmlns:dc="http://purl.org/dc/elements/1.1/"> | ||
<dc:identifier id="uid">urn:uuid:9b30f91c-ab6c-4112-a30d-390957259458</dc:identifier> | ||
<dc:title>Lorem Ipsum</dc:title> | ||
<dc:language>la</dc:language> | ||
<dc:date>2017-06-05</dc:date> | ||
</metadata> | ||
<manifest> | ||
<item id="t1" href="lorem.xhtml" media-type="application/xhtml+xml"/> | ||
<item id="ncx" href="lorem.ncx" media-type="application/x-dtbncx+xml"/> | ||
</manifest> | ||
<spine toc="ncx"> | ||
<itemref idref="t1"/> | ||
</spine> | ||
</package> |
10 changes: 10 additions & 0 deletions
10
src/test/resources/20/expanded/invalid/ncx-pagetarget-type/EPUB/lorem.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,10 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="la" lang="la"> | ||
<head> | ||
<title>Lorem Ipsum</title> | ||
</head> | ||
<body> | ||
<h1>Lorem Ipsum</h1> | ||
<p>Lorem ipsum dolor sit amet</p> | ||
</body> | ||
</html> |
7 changes: 7 additions & 0 deletions
7
src/test/resources/20/expanded/invalid/ncx-pagetarget-type/META-INF/container.xml
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<container xmlns="urn:oasis:names:tc:opendocument:xmlns:container" version="1.0"> | ||
<rootfiles> | ||
<rootfile full-path="EPUB/lorem.opf" | ||
media-type="application/oebps-package+xml"/> | ||
</rootfiles> | ||
</container> |
1 change: 1 addition & 0 deletions
1
src/test/resources/20/expanded/invalid/ncx-pagetarget-type/mimetype
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 @@ | ||
application/epub+zip |