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;
}
*/
public String getDocumentNamespace() {
if (svgDoc == null) {
- return MathMLElementMapping.URI;
+ return MathMLElementMapping.NAMESPACE;
}
return "http://www.w3.org/2000/svg";
}
*/
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() {
foObjs.put("math", new ME());
foObjs.put(DEFAULT, new MathMLMaker());
- XMLReader.setConverter(URI, new MathMLConverter());
+ XMLReader.setConverter(this.namespaceURI, new MathMLConverter());
}
}
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 {
* @see org.apache.fop.fo.XMLObj#getNameSpace()
*/
public String getNameSpace() {
- return MathMLElementMapping.URI;
+ return MathMLElementMapping.NAMESPACE;
}
}