Hi,
 
I'm struggling to embed SVG into a docbook5 document. I don't know if this is 
an issue of how I'm coding, or if this is an issue with the tools being 
used...any advice on solving this is welcomed.
 
I am using xsltproc with docbook5 docbook.xsl to produce a ".fo" file (Linux 
o/s), with the original XML validated error free under both xmllint and jing. I 
am thing using fop to create a number of output formats from the ".fo" 
file...ps, pdf, rtf. The section of code with the svg being added refers to an 
external file, and in no case does any error or warning ever show up. Here's 
the sample code:
<!DOCTYPE book [<!ENTITY version "0.1 unreleased">]> <book 
xmlns="http://docbook.org/ns/docbook";      
xmlns:xi="http://www.w3.org/2001/XInclude"; version="5.0">    <info>
...snip...
        <mediaobject>            <imageobject>                <imagedata 
align="left" format="svg" fileref="/somewhere/content/by-sa.svg"/>            
</imageobject>            <textobject>                <phrase>CC BY-SA 
License</phrase>            </textobject>            <caption>                
<para>This document is licensed under Creative Commons BY-SA License</para>     
       </caption>        </mediaobject>
...snip...
 
I have tried the fileref using full path, relative path, so on. There is never 
a complaint, the svg file itself displays and apparently is valid under a 
number of svg apps, and everything else shows up as expected. I have even tried 
intentionally making a very impossible and invalid file path, I cannot get a 
complaint from any of the tools. Am I using the XML wrong, or are my tools 
missing something under valid code?
 
Thanks!

Reply via email to