Browse Source

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
tags/fop-0_92-beta
Jeremias Maerki 18 years ago
parent
commit
8e769a44fa
1 changed files with 7 additions and 4 deletions
  1. 7
    4
      src/java/org/apache/fop/fo/PropertyList.java

+ 7
- 4
src/java/org/apache/fop/fo/PropertyList.java View File

@@ -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);
}
}
}


Loading…
Cancel
Save