[prev in list] [next in list] [prev in thread] [next in thread]
List: fop-cvs
Subject: svn commit: r381289 -
From: jeremias () apache ! org
Date: 2006-02-27 8:47:58
Message-ID: 20060227084759.65616.qmail () minotaur ! apache ! org
[Download RAW message or body]
Author: jeremias
Date: Mon Feb 27 00:47:52 2006
New Revision: 381289
URL: http://svn.apache.org/viewcvs?rev=381289&view=rev
Log:
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>
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java?rev=381289&r1=381288&r2=381289&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java Mon Feb 27 \
00:47:52 2006 @@ -295,10 +295,13 @@
}
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);
+ }
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic