While HTML and XSL-FO have no built in graphics capability, it is possible to include SVG (Scalable Vector Graphics) XML in the formatted results. To include SVG in HTML, a browser extension is required. The most common one for Internet Explorer is the Adobe SVG Plugin. This can be declared in the HTML (usually in the <head> section) like this:
<object id="AdobeSVG" classid="clsid:78156a80-c6a1-4bbf-8e6a-3cd390eeb4e2" /> <xsl:processing-instruction name="import">namespace="svg" implementation="#AdobeSVG" </xsl:processing-instruction>
To include SVG within XSL-FO it should be enclosed within an fo:instream-foreign-object element. Clearly, to produce graphics in the final PDF, the post processor must support the conversion of SVG embedded in the XSL-FO. Apache FOP includes Apache Batik to provide this capability.
Copyright © 2014 CA.
All rights reserved.
|
|