aboutsummaryrefslogtreecommitdiffstats
path: root/src/java
diff options
context:
space:
mode:
authorJeremias Maerki <jeremias@apache.org>2007-10-04 09:42:00 +0000
committerJeremias Maerki <jeremias@apache.org>2007-10-04 09:42:00 +0000
commit6b01763aed5d65ed66804c2167323824f9040d9f (patch)
tree9b459f652b18c7cf7dd19ebb620fbf2dfded4139 /src/java
parentf37cd976d6f626a13798e409d8fe0cc6d3b04efb (diff)
downloadxmlgraphics-fop-6b01763aed5d65ed66804c2167323824f9040d9f.tar.gz
xmlgraphics-fop-6b01763aed5d65ed66804c2167323824f9040d9f.zip
Removed unnecessary dependency on Batik in the "fo" package.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@581819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java')
-rw-r--r--src/java/org/apache/fop/fo/XMLObj.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/java/org/apache/fop/fo/XMLObj.java b/src/java/org/apache/fop/fo/XMLObj.java
index 0297bd483..42fb1b9a1 100644
--- a/src/java/org/apache/fop/fo/XMLObj.java
+++ b/src/java/org/apache/fop/fo/XMLObj.java
@@ -25,7 +25,6 @@ import java.util.HashMap;
import javax.xml.parsers.DocumentBuilderFactory;
-import org.apache.batik.dom.util.XMLSupport;
import org.apache.fop.apps.FOPException;
import org.apache.fop.datatypes.Length;
import org.apache.fop.util.ContentHandlerFactory.ObjectBuiltListener;
@@ -40,6 +39,8 @@ import org.xml.sax.Locator;
*/
public abstract class XMLObj extends FONode implements ObjectBuiltListener {
+ private static final String XMLNS_NAMESPACE_URI = "http://www.w3.org/2000/xmlns/";
+
// temp reference for attributes
private Attributes attr = null;
@@ -174,8 +175,8 @@ public abstract class XMLObj extends FONode implements ObjectBuiltListener {
element = doc.getDocumentElement();
buildTopLevel(doc, element);
- if (!element.hasAttributeNS(XMLSupport.XMLNS_NAMESPACE_URI, "xmlns")) {
- element.setAttributeNS(XMLSupport.XMLNS_NAMESPACE_URI, "xmlns",
+ if (!element.hasAttributeNS(XMLNS_NAMESPACE_URI, "xmlns")) {
+ element.setAttributeNS(XMLNS_NAMESPACE_URI, "xmlns",
getNamespaceURI());
}