diff options
-rw-r--r-- | examples/plan/src/org/apache/fop/plan/PlanElement.java | 2 | ||||
-rw-r--r-- | examples/plan/src/org/apache/fop/plan/PlanElementMapping.java | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/examples/plan/src/org/apache/fop/plan/PlanElement.java b/examples/plan/src/org/apache/fop/plan/PlanElement.java index 93e27a8c0..9c517ef30 100644 --- a/examples/plan/src/org/apache/fop/plan/PlanElement.java +++ b/examples/plan/src/org/apache/fop/plan/PlanElement.java @@ -119,7 +119,7 @@ public class PlanElement extends PlanObj { */ public String getDocumentNamespace() { if (svgDoc == null) { - return PlanElementMapping.URI; + return PlanElementMapping.NAMESPACE; } return "http://www.w3.org/2000/svg"; } diff --git a/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java b/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java index 724871edd..55f75e921 100644 --- a/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java +++ b/examples/plan/src/org/apache/fop/plan/PlanElementMapping.java @@ -63,8 +63,11 @@ import java.util.HashMap; */ public class PlanElementMapping extends ElementMapping { + /** Plan Namespace */ + public static final String NAMESPACE = "http://xml.apache.org/fop/plan"; + public PlanElementMapping() { - URI = "http://xml.apache.org/fop/plan"; + this.namespaceURI = NAMESPACE; } protected void initialize() { @@ -73,7 +76,7 @@ public class PlanElementMapping extends ElementMapping { foObjs.put("plan", new PE()); foObjs.put(DEFAULT, new PlanMaker()); - XMLReader.setConverter(URI, new PlanConverter()); + XMLReader.setConverter(this.namespaceURI, new PlanConverter()); } } |