File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
main/java/com/adobe/epubcheck/vocab
java/com/adobe/epubcheck/opf
resources/30/single/opf/valid Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ public static enum META_PROPERTIES
1919
2020 public static enum LINKREL_PROPERTIES
2121 {
22+ CERTIFIER_CREDENTIAL ,
2223 CERTIFIER_REPORT ;
2324 }
2425
Original file line number Diff line number Diff line change @@ -1313,6 +1313,12 @@ public void testVocabA11y() {
13131313 // tests that the a11y vocb and known properties are allowed
13141314 testValidateDocument ("valid/vocab-a11y-declared.opf" , EPUBVersion .VERSION_3 );
13151315 }
1316+
1317+ @ Test
1318+ public void testVocabA11yCredientialsInLink () {
1319+ // tests that the a11y:certifierCredential property can be defined as a link
1320+ testValidateDocument ("valid/vocab-a11y-credentials-in-link.opf" , EPUBVersion .VERSION_3 );
1321+ }
13161322
13171323 @ Test
13181324 public void testVocabA11yUndeclared () {
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <package xmlns =" http://www.idpf.org/2007/opf" version =" 3.0" unique-identifier =" uid"
3+ xmlns : dc =" http://purl.org/dc/elements/1.1/"
4+ prefix =" a11y: http://www.idpf.org/epub/vocab/package/a11y/#" >
5+ <metadata >
6+ <dc : identifier id =" uid" >uid</dc : identifier >
7+ <dc : title >Test</dc : title >
8+ <dc : language >en</dc : language >
9+ <meta property =" dcterms:modified" >2011-08-19T12:00:00Z</meta >
10+ <meta property =" a11y:certifiedBy" >Accessibility Testers Group</meta >
11+ <link rel =" a11y:certifierReport" href =" http://example.org/report" />
12+ <link rel =" a11y:certifierCredential" href =" https://example.com/a11y/credential" />
13+ </metadata >
14+ <manifest >
15+ <item id =" t001" href =" contents.xhtml" properties =" nav" media-type =" application/xhtml+xml" />
16+ </manifest >
17+ <spine >
18+ <itemref idref =" t001" />
19+ </spine >
20+ </package >
You can’t perform that action at this time.
0 commit comments