diff options
author | Jeremias Maerki <jeremias@apache.org> | 2006-02-27 08:47:52 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2006-02-27 08:47:52 +0000 |
commit | 8e769a44fab0eda1433dbb52933d8a99dac158e0 (patch) | |
tree | 6c700c6da385c11dac49495f7df46a2495ce5f47 /src/java/org/apache/fop/fo/PropertyList.java | |
parent | bc0dbc50ea511849c4a8d865d034103b4c0d1b5f (diff) | |
download | xmlgraphics-fop-8e769a44fab0eda1433dbb52933d8a99dac158e0.tar.gz xmlgraphics-fop-8e769a44fab0eda1433dbb52933d8a99dac158e0.zip |
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 <nmeier.at.users.sourceforge.net>
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@381289 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/fo/PropertyList.java')
-rw-r--r-- | src/java/org/apache/fop/fo/PropertyList.java | 11 |
1 files changed, 7 insertions, 4 deletions
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); + } } } |