diff options
author | Simon Steiner <ssteiner@apache.org> | 2022-09-27 07:11:14 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2022-09-27 07:11:14 +0000 |
commit | 8d54cb3f493d138ea274e264bcce9cf52cc2277f (patch) | |
tree | cc7d437f99e242f1610ff4c284e119b875098551 /fop-core | |
parent | 575503a3fe9d7ad808a7f14091555e3cf13abdd3 (diff) | |
download | xmlgraphics-fop-8d54cb3f493d138ea274e264bcce9cf52cc2277f.tar.gz xmlgraphics-fop-8d54cb3f493d138ea274e264bcce9cf52cc2277f.zip |
FOP-3094: Allow bookmarks before declarations
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1904294 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'fop-core')
-rw-r--r-- | fop-core/src/main/java/org/apache/fop/fo/pagination/Root.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fop-core/src/main/java/org/apache/fop/fo/pagination/Root.java b/fop-core/src/main/java/org/apache/fop/fo/pagination/Root.java index 3b895b372..495cc1ee8 100644 --- a/fop-core/src/main/java/org/apache/fop/fo/pagination/Root.java +++ b/fop-core/src/main/java/org/apache/fop/fo/pagination/Root.java @@ -137,7 +137,7 @@ public class Root extends FObj implements CommonAccessibilityHolder { nodesOutOfOrderError(loc, "fo:layout-master-set", "fo:declarations"); } else if (declarations != null) { tooManyNodesError(loc, "fo:declarations"); - } else if (bookmarkTree != null) { + } else if (bookmarkTree != null && getUserAgent().validateStrictly()) { nodesOutOfOrderError(loc, "fo:declarations", "fo:bookmark-tree"); } else if (pageSequenceFound) { nodesOutOfOrderError(loc, "fo:declarations", "fo:page-sequence"); |