aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/mathml/src/org/apache/fop/mathml/MathMLElement.java4
-rw-r--r--examples/mathml/src/org/apache/fop/mathml/MathMLElementMapping.java7
-rw-r--r--examples/mathml/src/org/apache/fop/mathml/MathMLObj.java4
3 files changed, 9 insertions, 6 deletions
diff --git a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
index 0df6088cb..9fc913e0d 100644
--- a/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
+++ b/examples/mathml/src/org/apache/fop/mathml/MathMLElement.java
@@ -123,7 +123,7 @@ public class MathMLElement extends MathMLObj {
doc = svgDoc;
}
} catch (Throwable t) {
- userAgent.getLogger().error("Could not convert MathML to SVG", t);
+ getLogger().error("Could not convert MathML to SVG", t);
width = 0;
height = 0;
}
@@ -181,7 +181,7 @@ public class MathMLElement extends MathMLObj {
*/
public String getDocumentNamespace() {
if (svgDoc == null) {
- return MathMLElementMapping.URI;
+ return MathMLElementMapping.NAMESPACE;
}
return "http://www.w3.org/2000/svg";
}
diff --git a/examples/mathml/src/org/apache/fop/mathml/MathMLElementMapping.java b/examples/mathml/src/org/apache/fop/mathml/MathMLElementMapping.java
index 9c48520eb..6dbf2b5d2 100644
--- a/examples/mathml/src/org/apache/fop/mathml/MathMLElementMapping.java
+++ b/examples/mathml/src/org/apache/fop/mathml/MathMLElementMapping.java
@@ -66,8 +66,11 @@ import net.sourceforge.jeuclid.DOMMathBuilder;
*/
public class MathMLElementMapping extends ElementMapping {
+ /** MathML Namespace */
+ public static final String NAMESPACE = "http://www.w3.org/1998/Math/MathML";
+
public MathMLElementMapping() {
- URI = "http://www.w3.org/1998/Math/MathML";
+ this.namespaceURI = NAMESPACE;
}
protected void initialize() {
@@ -76,7 +79,7 @@ public class MathMLElementMapping extends ElementMapping {
foObjs.put("math", new ME());
foObjs.put(DEFAULT, new MathMLMaker());
- XMLReader.setConverter(URI, new MathMLConverter());
+ XMLReader.setConverter(this.namespaceURI, new MathMLConverter());
}
}
diff --git a/examples/mathml/src/org/apache/fop/mathml/MathMLObj.java b/examples/mathml/src/org/apache/fop/mathml/MathMLObj.java
index 747fc62ca..f8aa1bc39 100644
--- a/examples/mathml/src/org/apache/fop/mathml/MathMLObj.java
+++ b/examples/mathml/src/org/apache/fop/mathml/MathMLObj.java
@@ -55,7 +55,7 @@ import org.apache.fop.fo.FONode;
import org.apache.fop.fo.XMLObj;
/**
- * Catch all MathML object as default element.
+ * Catch all MathML objects as default element.
*/
public class MathMLObj extends XMLObj {
@@ -70,7 +70,7 @@ public class MathMLObj extends XMLObj {
* @see org.apache.fop.fo.XMLObj#getNameSpace()
*/
public String getNameSpace() {
- return MathMLElementMapping.URI;
+ return MathMLElementMapping.NAMESPACE;
}
}