]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Disable the validation for extension elements. This is a temporary fix
authorFinn Bock <bckfnn@apache.org>
Wed, 8 Sep 2004 20:25:55 +0000 (20:25 +0000)
committerFinn Bock <bckfnn@apache.org>
Wed, 8 Sep 2004 20:25:55 +0000 (20:25 +0000)
until a full validation framework that support extensions are in place.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197935 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/FOTreeBuilder.java

index 4d0787bc3b07757d3c5deeafd2dd9c98d1c3b239..8f680c00a53e4b435e500c384b58a8da312d09c1 100644 (file)
@@ -255,10 +255,12 @@ public class FOTreeBuilder extends DefaultHandler {
                     "Error:  First element must be fo:root formatting object"));
             }
         } else { // check that incoming node is valid for currentFObj
-            try {
-                currentFObj.validateChildNode(locator, namespaceURI, localName);
-            } catch (SAXParseException e) {
-                throw e;
+            if (namespaceURI.equals(FOElementMapping.URI)) {
+                try {
+                    currentFObj.validateChildNode(locator, namespaceURI, localName);
+                } catch (SAXParseException e) {
+                    throw e;
+                }
             }
         }