Skip to content

Commit

Permalink
Update rules descriptions and error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximPlusov authored and bdoubrov committed Jan 26, 2024
1 parent e413fb3 commit 7ce90f3
Show file tree
Hide file tree
Showing 44 changed files with 132 additions and 128 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.146+03:00">
<name>ISO 19005-1:2005 - 6.7.11 XMP Package - PDF/A Identification Schema.</name>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A</description>
<description>A Level A conforming file shall specify the value of &quot;pdfaid:conformance&quot; as A</description>
</details>
<hash></hash>
<rules>
<rule object="PDFAIdentification">
<id specification="ISO_19005_1" clause="6.7.11" testNumber="3"/>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A</description>
<description>A Level A conforming file shall specify the value of &quot;pdfaid:conformance&quot; as A</description>
<test>conformance == &quot;A&quot;</test>
<error>
<message>The &quot;conformance&quot; property of the PDF/A Identification Schema is %1 instead of &quot;A&quot; for PDF/A-1a conforming file</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.114+03:00">
<name>ISO 19005-1:2005 - 6.7.11 Version and conformance level identification - Part number.</name>
<description>The value of pdfaid:part shall be the part number of ISO 19005 to which the file conforms</description>
<description>The value of &quot;pdfaid:part&quot; shall be the part number of ISO 19005 to which the file conforms</description>
</details>
<hash></hash>
<rules>
<rule object="PDFAIdentification">
<id specification="ISO_19005_1" clause="6.7.11" testNumber="2"/>
<description>The value of pdfaid:part shall be the part number of ISO 19005 to which the file conforms</description>
<description>The value of &quot;pdfaid:part&quot; shall be the part number of ISO 19005 to which the file conforms</description>
<test>part == 1</test>
<error>
<message>The &quot;part&quot; property of the PDF/A Identification Schema is %1 instead of 1 for PDF/A-1 conforming file</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.146+03:00">
<name>ISO 19005-1:2005 - 6.7.11 Version and conformance level identification - Conformance level.</name>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A. A Level B conforming file shall specify the value of pdfaid:conformance as B</description>
<description>A Level A conforming file shall specify the value of &quot;pdfaid:conformance&quot; as A. A Level B conforming file shall specify the value of &quot;pdfaid:conformance&quot; as B</description>
</details>
<hash></hash>
<rules>
<rule object="PDFAIdentification">
<id specification="ISO_19005_1" clause="6.7.11" testNumber="3"/>
<description>A Level A conforming file shall specify the value of pdfaid:conformance as A. A Level B conforming file shall specify the value of pdfaid:conformance as B</description>
<description>A Level A conforming file shall specify the value of &quot;pdfaid:conformance&quot; as A. A Level B conforming file shall specify the value of &quot;pdfaid:conformance&quot; as B</description>
<test>conformance == &quot;B&quot; || conformance == &quot;A&quot;</test>
<error>
<message>The &quot;conformance&quot; property of the PDF/A Identification Schema is %1 instead of &quot;B&quot; for PDF/A-1b conforming file</message>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.180+03:00">
<name>ISO 19005-1:2005 - 6.7.11 Version and conformance level identification - PDF/A Identification Schema property part.</name>
<description>Property part of the PDF/A Identification Schema shall have namespace prefix pdfaid</description>
<description>Property &quot;part&quot; of the PDF/A Identification Schema shall have namespace prefix &quot;pdfaid&quot;</description>
</details>
<hash></hash>
<rules>
<rule object="PDFAIdentification">
<id specification="ISO_19005_1" clause="6.7.11" testNumber="4"/>
<description>Property part of the PDF/A Identification Schema shall have namespace prefix pdfaid</description>
<description>Property &quot;part&quot; of the PDF/A Identification Schema shall have namespace prefix &quot;pdfaid&quot;</description>
<test>partPrefix == null || partPrefix == &quot;pdfaid&quot;</test>
<error>
<message>Property part of the PDF/A Identification Schema has invalid namespace prefix %1</message>
<message>Property &quot;part&quot; of the PDF/A Identification Schema has invalid namespace prefix %1</message>
<arguments>
<argument>partPrefix</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.180+03:00">
<name>ISO 19005-1:2005 - 6.7.11 Version and conformance level identification - PDF/A Identification Schema property conformance.</name>
<description>Property conformance of the PDF/A Identification Schema shall have namespace prefix pdfaid</description>
<description>Property &quot;conformance&quot; of the PDF/A Identification Schema shall have namespace prefix &quot;pdfaid&quot;</description>
</details>
<hash></hash>
<rules>
<rule object="PDFAIdentification">
<id specification="ISO_19005_1" clause="6.7.11" testNumber="5"/>
<description>Property conformance of the PDF/A Identification Schema shall have namespace prefix pdfaid</description>
<description>Property &quot;conformance&quot; of the PDF/A Identification Schema shall have namespace prefix &quot;pdfaid&quot;</description>
<test>conformancePrefix == null || conformancePrefix == &quot;pdfaid&quot;</test>
<error>
<message>Property conformance of the PDF/A Identification Schema has invalid namespace prefix %1</message>
<message>Property &quot;conformance&quot; of the PDF/A Identification Schema has invalid namespace prefix %1</message>
<arguments>
<argument>conformancePrefix</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFA_1_A">
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.180+03:00">
<name>ISO 19005-1:2005 - 6.7.11 Version and conformance level identification - PDF/A Identification Schema property amd.</name>
<description>Property amd of the PDF/A Identification Schema shall have namespace prefix pdfaid</description>
<description>Property &quot;amd&quot; of the PDF/A Identification Schema shall have namespace prefix &quot;pdfaid&quot;</description>
</details>
<hash></hash>
<rules>
<rule object="PDFAIdentification">
<id specification="ISO_19005_1" clause="6.7.11" testNumber="6"/>
<description>Property amd of the PDF/A Identification Schema shall have namespace prefix pdfaid</description>
<description>Property &quot;amd&quot; of the PDF/A Identification Schema shall have namespace prefix &quot;pdfaid&quot;</description>
<test>amdPrefix == null || amdPrefix == &quot;pdfaid&quot;</test>
<error>
<message>Property amd of the PDF/A Identification Schema has invalid namespace prefix %1</message>
<message>Property &quot;amd&quot; of the PDF/A Identification Schema has invalid namespace prefix %1</message>
<arguments>
<argument>amdPrefix</argument>
</arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.269+03:00">
<name>ISO 19005-1:2005 - 6.7.3 Document Information Dictionary - CreationDate and xmp:CreateDate</name>
<description>The value of CreationDate entry from the document information dictionary, if present, and its
analogous XMP property xmp:CreateDate shall be equivalent</description>
analogous XMP property &quot;xmp:CreateDate&quot; shall be equivalent</description>
</details>
<hash></hash>
<rules>
<rule object="CosInfo">
<id specification="ISO_19005_1" clause="6.7.3" testNumber="1"/>
<description>The value of CreationDate entry from the document information dictionary, if present, and its
analogous XMP property xmp:CreateDate shall be equivalent</description>
analogous XMP property &quot;xmp:CreateDate&quot; shall be equivalent</description>
<test>doCreationDatesMatch != false</test>
<error>
<message>The value of CreationDate entry from the document Info dictionary and its matching XMP property
xmp:CreateDate are not equivalent (Info /CreationDate = %1, XMP xmp:CreateDate = %2)</message>
&quot;xmp:CreateDate&quot; are not equivalent (Info /CreationDate = %1, XMP xmp:CreateDate = %2)</message>
<arguments>
<argument>CreationDate</argument>
<argument>XMPCreateDate</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.269+03:00">
<name>ISO 19005-1:2005 - 6.7.3 Document Information Dictionary - Title and dc:title</name>
<description>The value of Title entry from the document information dictionary, if present, and its
analogous XMP property dc:title['x-default'] shall be equivalent</description>
analogous XMP property &quot;dc:title['x-default']&quot; shall be equivalent</description>
</details>
<hash></hash>
<rules>
<rule object="CosInfo">
<id specification="ISO_19005_1" clause="6.7.3" testNumber="2"/>
<description>The value of Title entry from the document information dictionary, if present, and its
analogous XMP property dc:title['x-default'] shall be equivalent</description>
analogous XMP property &quot;dc:title['x-default']&quot; shall be equivalent</description>
<test>Title == null || Title == XMPTitle</test>
<error>
<message>The value of Title entry from the document Info dictionary and its matching XMP property
dc:title['x-default'] are not equivalent (Info /Title = %1, XMP dc:title['x-default'] = %2)</message>
&quot;dc:title['x-default']&quot; are not equivalent (Info /Title = %1, XMP dc:title['x-default'] = %2)</message>
<arguments>
<argument>Title</argument>
<argument>XMPTitle</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.269+03:00">
<name>ISO 19005-1:2005 - 6.7.3 Document Information Dictionary - Author and dc:creator</name>
<description>The value of Author entry from the document information dictionary, if present, and its
analogous XMP property dc:creator shall be equivalent. dc:creator shall contain exactly one entry</description>
analogous XMP property &quot;dc:creator&quot; shall be equivalent. dc:creator shall contain exactly one entry</description>
</details>
<hash></hash>
<rules>
<rule object="CosInfo">
<id specification="ISO_19005_1" clause="6.7.3" testNumber="3"/>
<description>The value of Author entry from the document information dictionary, if present, and its
analogous XMP property dc:creator shall be equivalent. dc:creator shall contain exactly one entry</description>
analogous XMP property &quot;dc:creator&quot; shall be equivalent. dc:creator shall contain exactly one entry</description>
<test>Author == null || (Author == XMPCreator &amp;&amp; XMPCreatorSize == 1)</test>
<error>
<message>The value of Author entry from the document Info dictionary and its matching XMP property
dc:creator are not equivalent (Info /Author = %1, XMP dc:creator = %2)</message>
&quot;dc:creator&quot; are not equivalent (Info /Author = %1, XMP dc:creator = %2)</message>
<arguments>
<argument>Author</argument>
<argument>XMPCreator</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.269+03:00">
<name>ISO 19005-1:2005 - 6.7.3 Document Information Dictionary - Subject and dc:description</name>
<description>The value of Subject entry from the document information dictionary, if present, and its
analogous XMP property dc:description['x-default'] shall be equivalent</description>
analogous XMP property &quot;dc:description['x-default']&quot; shall be equivalent</description>
</details>
<hash></hash>
<rules>
<rule object="CosInfo">
<id specification="ISO_19005_1" clause="6.7.3" testNumber="4"/>
<description>The value of Subject entry from the document information dictionary, if present, and its
analogous XMP property dc:description['x-default'] shall be equivalent</description>
analogous XMP property &quot;dc:description['x-default']&quot; shall be equivalent</description>
<test>Subject == null || Subject == XMPDescription</test>
<error>
<message>The value of Subject entry from the document Info dictionary and its matching XMP property
dc:description['x-default'] are not equivalent (Info /Subject = %1, XMP dc:description['x-default'] = %2)</message>
&quot;dc:description['x-default']&quot; are not equivalent (Info /Subject = %1, XMP dc:description['x-default'] = %2)</message>
<arguments>
<argument>Subject</argument>
<argument>XMPDescription</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.269+03:00">
<name>ISO 19005-1:2005 - 6.7.3 Document Information Dictionary - Keywords and pdf:Keywords</name>
<description>The value of Keywords entry from the document information dictionary, if present, and its
analogous XMP property pdf:Keywords shall be equivalent</description>
analogous XMP property &quot;pdf:Keywords&quot; shall be equivalent</description>
</details>
<hash></hash>
<rules>
<rule object="CosInfo">
<id specification="ISO_19005_1" clause="6.7.3" testNumber="5"/>
<description>The value of Keywords entry from the document information dictionary, if present, and its
analogous XMP property pdf:Keywords shall be equivalent</description>
analogous XMP property &quot;pdf:Keywords&quot; shall be equivalent</description>
<test>Keywords == null || Keywords == XMPKeywords</test>
<error>
<message>The value of Keywords entry from the document Info dictionary and its matching XMP property
pdf:Keywords are not equivalent (Info /Keywords = %1, XMP pdf:Keywords = %2)</message>
&quot;pdf:Keywords&quot; are not equivalent (Info /Keywords = %1, XMP pdf:Keywords = %2)</message>
<arguments>
<argument>Keywords</argument>
<argument>XMPKeywords</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.269+03:00">
<name>ISO 19005-1:2005 - 6.7.3 Document Information Dictionary - Creator and xmp:CreatorTool</name>
<description>The value of Creator entry from the document information dictionary, if present, and its
analogous XMP property xmp:CreatorTool shall be equivalent</description>
analogous XMP property &quot;xmp:CreatorTool&quot; shall be equivalent</description>
</details>
<hash></hash>
<rules>
<rule object="CosInfo">
<id specification="ISO_19005_1" clause="6.7.3" testNumber="6"/>
<description>The value of Creator entry from the document information dictionary, if present, and its
analogous XMP property xmp:CreatorTool shall be equivalent</description>
analogous XMP property &quot;xmp:CreatorTool&quot; shall be equivalent</description>
<test>Creator == null || Creator == XMPCreatorTool</test>
<error>
<message>The value of Creator entry from the document Info dictionary and its matching XMP property
xmp:CreatorTool are not equivalent (Info /Creator = %1, XMP xmp:CreatorTool = %2)</message>
&quot;xmp:CreatorTool&quot; are not equivalent (Info /Creator = %1, XMP xmp:CreatorTool = %2)</message>
<arguments>
<argument>Creator</argument>
<argument>XMPCreatorTool</argument>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
<details creator="veraPDF Consortium" created="2016-02-15T10:53:07.269+03:00">
<name>ISO 19005-1:2005 - 6.7.3 Document Information Dictionary - Producer and pdf:Producer</name>
<description>The value of Producer entry from the document information dictionary, if present, and its
analogous XMP property pdf:Producer shall be equivalent</description>
analogous XMP property &quot;pdf:Producer&quot; shall be equivalent</description>
</details>
<hash></hash>
<rules>
<rule object="CosInfo">
<id specification="ISO_19005_1" clause="6.7.3" testNumber="7"/>
<description>The value of Producer entry from the document information dictionary, if present, and its
analogous XMP property pdf:Producer shall be equivalent</description>
analogous XMP property &quot;pdf:Producer&quot; shall be equivalent</description>
<test>Producer == null || Producer == XMPProducer</test>
<error>
<message>The value of Producer entry from the document Info dictionary and its matching XMP property
pdf:Producer are not equivalent (Info /Producer = %1, XMP pdf:Producer = %2)</message>
&quot;pdf:Producer&quot; are not equivalent (Info /Producer = %1, XMP pdf:Producer = %2)</message>
<arguments>
<argument>Producer</argument>
<argument>XMPProducer</argument>
Expand Down
Loading

0 comments on commit 7ce90f3

Please sign in to comment.