This is the mail archive of the docbook@lists.oasis-open.org mailing list for the DocBook project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Referencing an external SVG document


I *think* this would be the preferred list, so here goes...

I would like to incorporate an SVG diagram into my document.  My toolchain 
is as follows:

   - 1.50.0 XSL stylesheets
   - Xalan-J 2.2.0 (2.3.1 causes the ArrayOutOfBounds exception)
   - fo-patch-for-fop.xsl (given that I am using 0.20.1)
   - Fop 0.20.1 (0.20.3 seems still to be twitchy)

According to the Fop web site, it expects SVG files to be references 
either as "fo:instream-foreign-object" or as "fo:external-graphic".  A 
"grep" of the Docbook stylesheets shows that they use only 
"fo:external-graphic".  From what I can tell, all of the uses of 
"fo:external-graphic" are restricted to formats such as jpg and eps.  This 
makes sense based on the documentation that I have found.

So my question is basically: Given an .svg file, what tags do I insert 
into my DocBook file to allow my toolchain to render the .svg as a figure?

Thanks for your help.

Jason Foster


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]