AH Formatter / XSL Formatter
Q&A



Operation

Graphics

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  How can I embed SVG in a document? [No.2002101501]
A. 

There are two ways of embedding SVG. One is to link to the external destination by using 'external-graphic'. The other is to describe the code of svg or abc:svg xmlns:abc="http://www.w3.org/2000/svg" directly to the document by using 'instream-foreign-object'.

<fo:instream-foreign-object content-width="215.9mm" content-height="279.4mm" >
  <svg xmlns="http://www.w3.org/2000/svg">
  (Code of SVG)
  </svg>
</fo:instream-foreign-object>

In this case please be sure to make the first element as svg or abc:svg xmlns:abc="http://www.w3.org/2000/svg". (abc as namespace prefix)


Copyright © 1999-2011 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.