From 69c20a7430e63cab5c17f88756709792d4c4a299 Mon Sep 17 00:00:00 2001 From: Glen Mazza Date: Mon, 13 Sep 2004 12:39:24 +0000 Subject: [PATCH] PR: Obtained from: Submitted by: Reviewed by: Fixed validation bug. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197948 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/flow/InstreamForeignObject.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java index 6505db5f7..610abdf92 100644 --- a/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java +++ b/src/java/org/apache/fop/fo/flow/InstreamForeignObject.java @@ -65,7 +65,7 @@ public class InstreamForeignObject extends FObj { * @see org.apache.fop.fo.FONode#end */ protected void endOfNode() throws SAXParseException { - if (childNodes == null) { + if (childNodes.size() != 1) { missingChildElementError("one (1) non-XSL namespace child"); } } -- 2.39.5