Browse Source

Fixed getDocument() method (is now getDOMDocument()).

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@266301 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_90-alpha1
Jeremias Maerki 19 years ago
parent
commit
77a2d704aa
1 changed files with 5 additions and 7 deletions
  1. 5
    7
      examples/mathml/src/org/apache/fop/mathml/MathMLElement.java

+ 5
- 7
examples/mathml/src/org/apache/fop/mathml/MathMLElement.java View File

/* /*
* Copyright 1999-2004 The Apache Software Foundation.
* Copyright 1999-2005 The Apache Software Foundation.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.


/** /**
* Create the SVG from MathML. * Create the SVG from MathML.
* @param base the root element
* @return the DOM document containing SVG * @return the DOM document containing SVG
*/ */
public static Document createSVG(MathBase base) { public static Document createSVG(MathBase base) {


DOMImplementation impl =
SVGDOMImplementation.getDOMImplementation();
DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI; String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
Document svgdocument = impl.createDocument(svgNS, "svg", null); Document svgdocument = impl.createDocument(svgNS, "svg", null);




} }


/**
* @see org.apache.fop.fo.XMLObj#getDocument()
*/
public Document getDocument() {
/** @see org.apache.fop.fo.XMLObj#getDOMDocument() */
public Document getDOMDocument() {
convertToSVG(); convertToSVG();
return doc; return doc;
} }

Loading…
Cancel
Save