aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas L. Delmelle <adelmelle@apache.org>2008-09-10 13:24:00 +0000
committerAndreas L. Delmelle <adelmelle@apache.org>2008-09-10 13:24:00 +0000
commit6582977a9932e22166e1ef165bc79e49a559229f (patch)
tree9332af16cb52c451ab4eca09222bbd49f1096a21 /src
parent6dcae86dbdf2248c622887300ae1a674d4493b5e (diff)
downloadxmlgraphics-fop-6582977a9932e22166e1ef165bc79e49a559229f.tar.gz
xmlgraphics-fop-6582977a9932e22166e1ef165bc79e49a559229f.zip
Minor fix: avoid attempts at converting a default namespace declaration as a FO property, if the parser reports it as a regular attribute
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@693841 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/fop/fo/PropertyList.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/java/org/apache/fop/fo/PropertyList.java b/src/java/org/apache/fop/fo/PropertyList.java
index 13f983841..709c4303b 100644
--- a/src/java/org/apache/fop/fo/PropertyList.java
+++ b/src/java/org/apache/fop/fo/PropertyList.java
@@ -370,8 +370,10 @@ public abstract class PropertyList {
if (attributeValue != null) {
- if (attributeName.startsWith("xmlns:")) {
- //Ignore namespace declarations
+ if (attributeName.startsWith("xmlns:")
+ || "xmlns".equals(attributeName)) {
+ //Ignore namespace declarations if the XML parser/XSLT processor
+ //reports them as 'regular' attributes
return;
}
@@ -519,7 +521,7 @@ public abstract class PropertyList {
}
/**
- * @param propID ID of property
+ * @param propId ID of property
* @return new Property object
* @throws PropertyException if there's a problem while processing the property
*/
@@ -638,7 +640,6 @@ public abstract class PropertyList {
return new CommonAbsolutePosition(this);
}
-
/**
* Constructs a CommonFont object.
*