-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
628d68d
commit b5d02cd
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
...quirements for specific structure types/8.2.5.27 Caption/verapdf-profile-8-2-5-27-t01.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,24 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<profile xmlns="http://www.verapdf.org/ValidationProfile" flavour="PDFUA_2"> | ||
<details creator="veraPDF Consortium" created="2023-03-13T10:53:06.894+03:00"> | ||
<name>ISO 14289-2:202x - 8.2 Logical structure - 8.2.5.27 Caption - Caption index</name> | ||
<description>When present, the Caption element shall be the first or the last child of the structure element</description> | ||
</details> | ||
<hash></hash> | ||
<rules> | ||
<rule object="PDStructElem"> | ||
<id specification="ISO_14289_2" clause="8.2.5.27" testNumber="1"/> | ||
<description>When present, the Caption element shall be the first or the last child of the structure element</description> | ||
<test>kidsStandardTypes.indexOf('&Caption&') < 0</test> | ||
<error> | ||
<message>Structure element %1 contains Caption as its %2 child instead of first or last one</message> | ||
<arguments> | ||
<argument>objectKey</argument> | ||
<argument>kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') + 2</argument> | ||
</arguments> | ||
</error> | ||
<references/> | ||
</rule> | ||
</rules> | ||
<variables/> | ||
</profile> |