From 0056ac3d4b4b7a11977f00127cfc1190af795042 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Fri, 23 Dec 2005 08:52:07 +0000 Subject: [PATCH] Relaxed validation for empty static-content for compatibility with 0.20.5. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/fop-0_91@358773 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/pagination/StaticContent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/pagination/StaticContent.java b/src/java/org/apache/fop/fo/pagination/StaticContent.java index 5278db92b..73cbaff6f 100644 --- a/src/java/org/apache/fop/fo/pagination/StaticContent.java +++ b/src/java/org/apache/fop/fo/pagination/StaticContent.java @@ -54,7 +54,7 @@ public class StaticContent extends Flow { * @see org.apache.fop.fo.FONode#endOfNode */ protected void endOfNode() throws FOPException { - if (childNodes == null) { + if (childNodes == null && getUserAgent().validateStrictly()) { missingChildElementError("(%block;)+"); } getFOEventHandler().endFlow(this); -- 2.39.5