From: Glen Mazza Date: Mon, 13 Sep 2004 12:39:24 +0000 (+0000) Subject: PR: X-Git-Tag: Root_Temp_KnuthStylePageBreaking~547 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=69c20a7430e63cab5c17f88756709792d4c4a299;p=xmlgraphics-fop.git 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 --- 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"); } }