From f932281a4585e9e809a133dc8f673d13891b93ca Mon Sep 17 00:00:00 2001 From: Git User <> Date: Thu, 14 Dec 2023 15:04:44 +0000 Subject: [PATCH] PDF/UA-2. Add rule 8.2.5.27-1 --- .../org/verapdf/pdfa/validation/PDFUA-2.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2.xml b/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2.xml index fe182410c..034c42c05 100644 --- a/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2.xml +++ b/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-2.xml @@ -374,6 +374,19 @@ + + + When present, the Caption element shall be the first or the last child of the structure element + kidsStandardTypes.indexOf('&Caption&') < 0 + + Structure element %1 contains Caption as its %2 child instead of first or last one + + objectKey + kidsStandardTypes.split('&').slice(1).findIndex(elem => elem == 'Caption') + 2 + + + + A Figure structure element shall have at least one of the following properties: a) an alternate description (Alt property), as specified in ISO 32000-2:2020, 14.9.3; b) a replacement text (ActualText property) that represents the content enclosed by the Figure structure element