From: Finn Bock Date: Wed, 8 Sep 2004 20:25:55 +0000 (+0000) Subject: Disable the validation for extension elements. This is a temporary fix X-Git-Tag: Root_Temp_KnuthStylePageBreaking~556 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8b55ff3e15dccf9acbf59a154b3f0d17cd4118a6;p=xmlgraphics-fop.git Disable the validation for extension elements. This is a temporary fix 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 --- diff --git a/src/java/org/apache/fop/fo/FOTreeBuilder.java b/src/java/org/apache/fop/fo/FOTreeBuilder.java index 4d0787bc3..8f680c00a 100644 --- a/src/java/org/apache/fop/fo/FOTreeBuilder.java +++ b/src/java/org/apache/fop/fo/FOTreeBuilder.java @@ -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; + } } }