From 8b55ff3e15dccf9acbf59a154b3f0d17cd4118a6 Mon Sep 17 00:00:00 2001 From: Finn Bock Date: Wed, 8 Sep 2004 20:25:55 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/fo/FOTreeBuilder.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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; + } } } -- 2.39.5