]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
PR:
authorGlen Mazza <gmazza@apache.org>
Mon, 13 Sep 2004 12:39:24 +0000 (12:39 +0000)
committerGlen Mazza <gmazza@apache.org>
Mon, 13 Sep 2004 12:39:24 +0000 (12:39 +0000)
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

index 6505db5f7bb906a8ecd1db4b2eb5034278148e21..610abdf92c11ccd09c0095fafb2c04a8101ebd3b 100644 (file)
@@ -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");
         }
     }