This section provides a tutorial example on how to use ‘external-graphic’ formatting object to display SVG (Scalable Vector Graphics) diagrams. external-graphic formatting objects can also be used to display SVG (Scalable Vector Graphics) diagrams. To play with SVG diagrams, let’s create a SVG file, sample. svg , first:, 7/14/2003 · Currently, SVG images are rendered with the dimensions specified in the SVG file, within the viewport specified in the fo:external-graphic element. For everything to work properly, the two should be equal. The SVG standard leaves this issue as an implementation detail. FOP will probably implement a scaling mechanism in the future.
FOP uses the SVG library from Batik to handle SVG . This format can be handled as an fo :instream-foreign-object or in a separate file referenced with fo :external-graphic. Either way the SVG document will be read in and converted into a DOM in Batik. This DOM will.
fo:external-graphic A graphic where the graphics data resides outside of the XML result tree in the fo namespace. See http://www.w3.org/TR/xsl11/#fo_external-graphic .
fo :external-graphic does not support SVG when src is an urlMake sure that the web server returns a correct content-type (MIME) for svg . image/ svg +xml if I remember correctly /G—– Original Message —–From: Unger, Joachim To: fop-***@xml.apache.org Sent: Wednesday, November 12, 2003 9:05 PM