Index: sources/org/apache/batik/dom/svg12/BindableElement.java =================================================================== --- sources/org/apache/batik/dom/svg12/BindableElement.java (revision 748057) +++ sources/org/apache/batik/dom/svg12/BindableElement.java (working copy) @@ -21,7 +21,6 @@ import org.apache.batik.dom.AbstractDocument; import org.apache.batik.dom.svg.AttributeInitializer; import org.apache.batik.dom.svg.SVGGraphicsElement; - import org.w3c.dom.Node; /** @@ -93,13 +92,55 @@ } /** + * Exports this node to the given document. + */ + protected Node export(Node n, AbstractDocument d) { + BindableElement be = (BindableElement)super.export(n, d); + be.namespaceURI = namespaceURI; + be.localName = localName; + return n; + } + + /** + * Deeply exports this node to the given document. + */ + protected Node deepExport(Node n, AbstractDocument d) { + BindableElement be = (BindableElement)super.deepExport(n, d); + be.namespaceURI = namespaceURI; + be.localName = localName; + return n; + } + + /** + * Copy the fields of the current node into the given node. + * @param n a node of the type of this. + */ + protected Node copyInto(Node n) { + BindableElement be = (BindableElement)super.copyInto(n); + be.namespaceURI = namespaceURI; + be.localName = localName; + return n; + } + + /** + * Deeply copy the fields of the current node into the given node. + * @param n a node of the type of this. + */ + protected Node deepCopyInto(Node n) { + BindableElement be = (BindableElement)super.deepCopyInto(n); + be.namespaceURI = namespaceURI; + be.localName = localName; + return n; + } + + /** * Returns a new uninitialized instance of this object's class. */ protected Node newNode() { - return new BindableElement(null, null, namespaceURI, localName); + return new BindableElement(); } - /** + /** * Sets the shadow tree for this bindable element. */ public void setShadowTree(XBLOMShadowTreeElement s) {