From 8e769a44fab0eda1433dbb52933d8a99dac158e0 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 27 Feb 2006 08:47:52 +0000 Subject: Ignore attributes from foreign namespaces. This is a temporary fix to get rid of ugly warnings until a proper mechanism for handling foreign attributes is available. Submitted by: Nils Meier git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381289 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/fop/fo/PropertyList.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java index 94fe82a83..17ce3271a 100644 --- a/src/java/org/apache/fop/fo/PropertyList.java +++ b/src/java/org/apache/fop/fo/PropertyList.java @@ -295,10 +295,13 @@ public abstract class PropertyList { } for (int i = 0; i < attributes.getLength(); i++) { - attributeName = attributes.getQName(i); - attributeValue = attributes.getValue(i); - convertAttributeToProperty(attributes, attributeName, - attributeValue); + /* convert all attributes with the same namespace as the fo element for this fObj */ + String attributeNS = attributes.getURI(i); + if (attributeNS.length() == 0 || attributeNS.equals(fobj.getNamespaceURI())) { + attributeName = attributes.getQName(i); + attributeValue = attributes.getValue(i); + convertAttributeToProperty(attributes, attributeName, attributeValue); + } } } -- cgit v1.2.3