Author: adelmelle
Date: Wed Sep 10 06:24:00 2008
New Revision: 693841

URL: http://svn.apache.org/viewvc?rev=693841&view=rev
Log:
Minor fix: avoid attempts at converting a default namespace declaration as a FO 
property, if the parser reports it as a regular attribute

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/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/PropertyList.java?rev=693841&r1=693840&r2=693841&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 Wed Sep 
10 06:24:00 2008
@@ -370,8 +370,10 @@
 
         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 @@
     }
 
     /**
-     * @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 @@
         return new CommonAbsolutePosition(this);
     }
 
-
     /**
      * Constructs a CommonFont object.
      *



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to