diff options
author | Jeremias Maerki <jeremias@apache.org> | 2008-11-21 16:07:58 +0000 |
---|---|---|
committer | Jeremias Maerki <jeremias@apache.org> | 2008-11-21 16:07:58 +0000 |
commit | d62f5f811c40bc3f0b20f0ae8d75cfb240be9c67 (patch) | |
tree | 745eb3d765ab3f325733591b71197304013ec8d0 /src/java/org/apache/fop/svg | |
parent | f15eca494468c55454bbc20dee20bb874f39c5ab (diff) | |
download | xmlgraphics-fop-d62f5f811c40bc3f0b20f0ae8d75cfb240be9c67.tar.gz xmlgraphics-fop-d62f5f811c40bc3f0b20f0ae8d75cfb240be9c67.zip |
Added support for SVG 1.2 inside fo:instream-foreign-object. The code just used the basic SVGDOMImplementation for SVG 1.1. Now it delegates the DOM building to Batik code instead of to a normal DOM builder.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@719616 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/svg')
-rw-r--r-- | src/java/org/apache/fop/svg/FOPSAXSVGDocumentFactory.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/java/org/apache/fop/svg/FOPSAXSVGDocumentFactory.java b/src/java/org/apache/fop/svg/FOPSAXSVGDocumentFactory.java index 720795cb2..fce6ed2b6 100644 --- a/src/java/org/apache/fop/svg/FOPSAXSVGDocumentFactory.java +++ b/src/java/org/apache/fop/svg/FOPSAXSVGDocumentFactory.java @@ -21,6 +21,8 @@ package org.apache.fop.svg; import java.io.IOException; +import org.w3c.dom.Document; + import org.xml.sax.EntityResolver; import org.xml.sax.InputSource; import org.xml.sax.SAXException; @@ -71,4 +73,13 @@ public class FOPSAXSVGDocumentFactory extends SAXSVGDocumentFactory { return super.resolveEntity(publicId, systemId); } + /** + * Returns the document built up by handling the incoming SAX events. This method will not + * return any instance for the first SAX events have been received. + * @return the DOM document + */ + public Document getDocument() { + return this.document; + } + } |