From 62b6b1527d24ed70fa4646e5a015b5589451e880 Mon Sep 17 00:00:00 2001 From: Maxim Date: Mon, 5 Feb 2024 23:23:44 +0300 Subject: [PATCH] Fix getRoleMapToSameNamespaceTag --- src/main/java/org/verapdf/tools/TaggedPDFHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/verapdf/tools/TaggedPDFHelper.java b/src/main/java/org/verapdf/tools/TaggedPDFHelper.java index b9fe7ec0..add6ce1a 100644 --- a/src/main/java/org/verapdf/tools/TaggedPDFHelper.java +++ b/src/main/java/org/verapdf/tools/TaggedPDFHelper.java @@ -186,7 +186,7 @@ public static String getRoleMapToSameNamespaceTag(StructureType type) { StructureType curr = getEquivalent(prev, Collections.emptyMap()); while (curr != null) { if (curr.getNameSpaceURI() != null && curr.getNameSpaceURI().equals(prev.getNameSpaceURI())) { - return curr.getNameSpaceURI(); + return prev.getNameSpaceURI() + ":" + (prev.getType() != null ? prev.getType().getValue() : null); } if (isVisited(curr) || isStandardType(curr)) { return null;