diff options
author | Keiron Liddle <keiron@apache.org> | 2002-03-05 10:25:39 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2002-03-05 10:25:39 +0000 |
commit | 2d202dea1c7678cac8071ff2e9c124f541852656 (patch) | |
tree | 8a81850e5c50b3fdbfefc384fccdfd319a8f9ec4 /src/org/apache/fop | |
parent | 45eed66a318f0ed8a384c49f3441e189cecd0447 (diff) | |
download | xmlgraphics-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.java | 6 | ||||
-rw-r--r-- | src/org/apache/fop/fo/flow/InstreamForeignObject.java | 2 |
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); |