From 8aa52234ead92f3dbb266b3eb28583919d49a023 Mon Sep 17 00:00:00 2001 From: Finn Bock Date: Thu, 9 Sep 2004 07:19:23 +0000 Subject: [PATCH] Also validate extension elements from the fox: namespace. 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 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/java/org/apache/fop/fo/FOTreeBuilder.java b/src/java/org/apache/fop/fo/FOTreeBuilder.java index 8f680c00a..38bd0ef18 100644 --- a/src/java/org/apache/fop/fo/FOTreeBuilder.java +++ b/src/java/org/apache/fop/fo/FOTreeBuilder.java @@ -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) { -- 2.39.5