]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Also validate extension elements from the fox: namespace.
authorFinn Bock <bckfnn@apache.org>
Thu, 9 Sep 2004 07:19:23 +0000 (07:19 +0000)
committerFinn Bock <bckfnn@apache.org>
Thu, 9 Sep 2004 07:19:23 +0000 (07:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@197936 13f79535-47bb-0310-9956-ffa450edef68

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

index 8f680c00a53e4b435e500c384b58a8da312d09c1..38bd0ef18f66588125e118d17bfb581a888ef622 100644 (file)
@@ -39,6 +39,7 @@ import org.apache.fop.area.AreaTreeHandler;
 import org.apache.fop.render.mif.MIFHandler;
 import org.apache.fop.render.rtf.RTFHandler;
 import org.apache.fop.fo.ElementMapping.Maker;
+import org.apache.fop.fo.extensions.ExtensionElementMapping;
 import org.apache.fop.fo.pagination.Root;
 import org.xml.sax.Attributes;
 import org.xml.sax.Locator;
@@ -255,7 +256,8 @@ public class FOTreeBuilder extends DefaultHandler {
                     "Error:  First element must be fo:root formatting object"));
             }
         } else { // check that incoming node is valid for currentFObj
-            if (namespaceURI.equals(FOElementMapping.URI)) {
+            if (namespaceURI.equals(FOElementMapping.URI) || 
+                namespaceURI.equals(ExtensionElementMapping.URI)) {
                 try {
                     currentFObj.validateChildNode(locator, namespaceURI, localName);
                 } catch (SAXParseException e) {