aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-03-05 10:25:39 +0000
committerKeiron Liddle <keiron@apache.org>2002-03-05 10:25:39 +0000
commit2d202dea1c7678cac8071ff2e9c124f541852656 (patch)
tree8a81850e5c50b3fdbfefc384fccdfd319a8f9ec4 /src/org/apache/fop
parent45eed66a318f0ed8a384c49f3441e189cecd0447 (diff)
downloadxmlgraphics-fop-2d202dea1c7678cac8071ff2e9c124f541852656.tar.gz
xmlgraphics-fop-2d202dea1c7678cac8071ff2e9c124f541852656.zip
gets namespace of document through different call so conversion is possible
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194689 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop')
-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);