aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/org/apache/fop/fo/FObj.java2
-rw-r--r--src/org/apache/fop/fo/UnknownXMLObj.java6
-rw-r--r--src/org/apache/fop/fo/XMLObj.java1
3 files changed, 7 insertions, 2 deletions
diff --git a/src/org/apache/fop/fo/FObj.java b/src/org/apache/fop/fo/FObj.java
index ad10bbc77..02d305719 100644
--- a/src/org/apache/fop/fo/FObj.java
+++ b/src/org/apache/fop/fo/FObj.java
@@ -149,7 +149,7 @@ public class FObj extends FONode {
* reference areas and use the value of its writing-mode property.
* If no such ancestor is found, use the value on the root FO.
*/
- private void setWritingMode() {
+ protected void setWritingMode() {
FObj p;
FObj parent;
for (p = this;
diff --git a/src/org/apache/fop/fo/UnknownXMLObj.java b/src/org/apache/fop/fo/UnknownXMLObj.java
index 5c734aaed..0110dd992 100644
--- a/src/org/apache/fop/fo/UnknownXMLObj.java
+++ b/src/org/apache/fop/fo/UnknownXMLObj.java
@@ -62,7 +62,11 @@ public class UnknownXMLObj extends XMLObj {
protected UnknownXMLObj(FObj parent, PropertyList propertyList, String space, String tag) {
super(parent, propertyList, tag);
this.namespace = space;
- this.name = this.namespace + ":" + tag;
+ if(!"".equals(space)) {
+ this.name = this.namespace + ":" + tag;
+ } else {
+ this.name = "(none):" + tag;
+ }
}
public String getNameSpace() {
diff --git a/src/org/apache/fop/fo/XMLObj.java b/src/org/apache/fop/fo/XMLObj.java
index 1b17bf21f..c7631efac 100644
--- a/src/org/apache/fop/fo/XMLObj.java
+++ b/src/org/apache/fop/fo/XMLObj.java
@@ -168,5 +168,6 @@ public abstract class XMLObj extends FObj {
public void rollback(Vector snapshot) {}
+ protected void setWritingMode() {}
}