diff --git a/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-1.xml b/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-1.xml index c39b90d57..322e8f57b 100644 --- a/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-1.xml +++ b/core/src/main/resources/org/verapdf/pdfa/validation/PDFUA-1.xml @@ -67,11 +67,11 @@ Content marked as Artifact should not present inside tagged content - tag != 'Artifact' || parentStructureTag == null + tag != 'Artifact' || isTaggedContent == false - Content marked as Artifact is present inside tagged content (tag %1) + Content marked as Artifact is present inside tagged content (parent struct element %1) - parentStructureTag + parentStructureElementObjectKey @@ -79,11 +79,11 @@ Tagged content should not present inside content marked as Artifact - parentStructureTag == null || parentsTags.split('&').filter(elem => elem == 'Artifact').length == 0 + isTaggedContent == false || parentsTags.split('&').filter(elem => elem == 'Artifact').length == 0 - Tagged content (tag %1) is present inside content marked as Artifact + Tagged content (parent struct element %1) is present inside content marked as Artifact - parentStructureTag + parentStructureElementObjectKey @@ -91,7 +91,7 @@ Content shall be marked as Artifact or tagged as real content - parentStructureTag != null || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0 + isTaggedContent == true || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0 Content is neither marked as Artifact nor tagged as real content 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 3af8ea799..ef6b42ea1 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 @@ -91,7 +91,7 @@ Content that is not considered real shall be an artifact - parentStructureTag != null || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0 + isTaggedContent == true || parentsTags.split('&').filter(elem => elem == 'Artifact').length > 0 Content is neither marked as Artifact nor tagged as real content @@ -438,17 +438,17 @@ The ActualText entry shall not contain any PUA values containsPUA == false - The ActualText entry contains a Private Unicoide Area value + The ActualText entry contains a Private Unicode Area value - + The Alt entry shall not contain any PUA values containsPUA == false - The Alt entry contains a Private Unicoide Area value + The Alt entry contains a Private Unicode Area value @@ -668,7 +668,7 @@ Real content that does not possess the semantics of text objects and does not have an alternate textual representation shall be enclosed within Figure or Formula structure elements as appropriate - itemType == 'text' || parentStructureTag == null || ActualText != null || isArtifact == true || isFigure == true || isFormula == true + itemType == 'text' || isTaggedContent == false || ActualText != null || isArtifact == true || isFigure == true || isFormula == true Real content that does not possess the semantics of text objects and does not have an alternate textual representation is not enclosed within Figure or Formula structure elements