-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the OPF20 RNG schema in sync with official schema to validate …
…empty guide elements This change is in sync with the official OPF schema at http://www.idpf.org/epub/20/spec/OPF_2.0_latest.htm#AppendixA A test has been added.
- Loading branch information
Showing
3 changed files
with
38 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
29 changes: 29 additions & 0 deletions
29
src/test/resources/20/single/opf/invalid/issue663_empty-guide.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,29 @@ | ||
<?xml version='1.0' encoding='UTF-8'?> | ||
<package xmlns:opf="http://www.idpf.org/2007/opf" xmlns:dcterms="http://purl.org/dc/terms/" | ||
xmlns:dc="http://purl.org/dc/elements/1.1/" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.idpf.org/2007/opf" | ||
version="2.0" unique-identifier="id"> | ||
<metadata> | ||
<dc:rights>Public domain in the USA.</dc:rights> | ||
<dc:identifier id="id" opf:scheme="URI" | ||
>http://www.gutenberg.org/ebooks/36582</dc:identifier> | ||
<dc:creator opf:file-as="Anonymous">Anonymous</dc:creator> | ||
<dc:title>Advice to Sunday School Children</dc:title> | ||
<dc:language xsi:type="dcterms:RFC4646">en</dc:language> | ||
<dc:date opf:event="publication">2011-07-02</dc:date> | ||
<dc:date opf:event="conversion">2011-07-03T19:26:31.417584+00:00</dc:date> | ||
<dc:source>http://www.gutenberg.org/files/36582/36582-h/36582-h.htm</dc:source> | ||
<meta content="item1" name="cover"/> | ||
</metadata> | ||
<manifest> | ||
<item id="Html-cover-page" href="xhtml/cover.xml" media-type="application/xhtml+xml"/> | ||
<item id="Cover-image" href="images/...jpg" media-type="image/jpeg"/> | ||
<item id="Contents" href="xhtml/contents.html" media-type="application/xhtml+xml"/> | ||
<item id="ncx" href="nav.ncx" media-type="application/x-dtbncx+xml"/> | ||
</manifest> | ||
<spine toc="ncx"> | ||
<itemref idref="Html-cover-page" linear="no"/> | ||
<itemref idref="Contents" linear="yes"/> | ||
</spine> | ||
<guide/> | ||
</package> |