You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2007/10/04 11:42:01 UTC
svn commit: r581819 -
/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLObj.java
Author: jeremias
Date: Thu Oct 4 02:42:00 2007
New Revision: 581819
URL: http://svn.apache.org/viewvc?rev=581819&view=rev
Log:
Removed unnecessary dependency on Batik in the "fo" package.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLObj.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLObj.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLObj.java?rev=581819&r1=581818&r2=581819&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLObj.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/XMLObj.java Thu Oct 4 02:42:00 2007
@@ -25,7 +25,6 @@
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 @@
*/
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 @@
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());
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org