]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Minor fix: avoid attempts at converting a default namespace declaration as a FO prope...
authorAndreas L. Delmelle <adelmelle@apache.org>
Wed, 10 Sep 2008 13:24:00 +0000 (13:24 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Wed, 10 Sep 2008 13:24:00 +0000 (13:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@693841 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/fo/PropertyList.java

index 13f9838414d87bb1e535214d7b5c768f6d1a1856..709c4303bfd8fe5606c5b6f09ccf3fe515236141 100644 (file)
@@ -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.
      *