summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2005-12-23 08:52:07 +0000
committerJeremias Maerki <jeremias@apache.org>2005-12-23 08:52:07 +0000
commit0056ac3d4b4b7a11977f00127cfc1190af795042 (patch)
tree12244b1a3e0de8ceb7deaae4255cb5928f2aeabf
parent397868b6f8fc3111a10b70f9ceb881d9121fbd31 (diff)
downloadxmlgraphics-fop-0056ac3d4b4b7a11977f00127cfc1190af795042.tar.gz
xmlgraphics-fop-0056ac3d4b4b7a11977f00127cfc1190af795042.zip
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
-rw-r--r--src/java/org/apache/fop/fo/pagination/StaticContent.java2
1 files changed, 1 insertions, 1 deletions
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);