aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/apache/fop/fo/XMLObj.java6
-rw-r--r--src/org/apache/fop/fo/flow/InstreamForeignObject.java2
2 files changed, 6 insertions, 2 deletions
diff --git a/src/org/apache/fop/fo/XMLObj.java b/src/org/apache/fop/fo/XMLObj.java
index 832349c39..17cf7dfbe 100644
--- a/src/org/apache/fop/fo/XMLObj.java
+++ b/src/org/apache/fop/fo/XMLObj.java
@@ -53,7 +53,7 @@ public abstract class XMLObj extends FONode {
}
public Document getDocument() {
- return doc;
+ return doc;
}
public Point2D getDimension(Point2D view) {
@@ -62,6 +62,10 @@ public abstract class XMLObj extends FONode {
public abstract String getNameSpace();
+ public String getDocumentNamespace() {
+ return getNameSpace();
+ }
+
protected static HashMap ns = new HashMap();
static {
ns.put("xlink", "http://www.w3.org/1999/xlink");
diff --git a/src/org/apache/fop/fo/flow/InstreamForeignObject.java b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
index e63cb9b6c..84c623075 100644
--- a/src/org/apache/fop/fo/flow/InstreamForeignObject.java
+++ b/src/org/apache/fop/fo/flow/InstreamForeignObject.java
@@ -127,7 +127,7 @@ public class InstreamForeignObject extends FObj {
Point2D size = child.getDimension(new Point2D.Float(-1, -1));
Document doc = child.getDocument();
- String ns = child.getNameSpace();
+ String ns = child.getDocumentNamespace();
children = null;
ForeignObject foreign = new ForeignObject(doc, ns);