From: Andreas L. Delmelle Date: Wed, 10 Sep 2008 13:24:00 +0000 (+0000) Subject: Minor fix: avoid attempts at converting a default namespace declaration as a FO prope... X-Git-Tag: fop-1_0~418 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6582977a9932e22166e1ef165bc79e49a559229f;p=xmlgraphics-fop.git 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 --- 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. *