OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] fop/xsltproc, External SVG Issue


 
It would be helpful to see a bit more info.
1. What was the commands used and what was the console output?
2. The XML looks OK, but do you have adequate permissions for that SVG file?
3. Is this in an "info" section?
 
Regards
Dean Nelson
 
In a message dated 6/21/2016 3:34:51 P.M. Pacific Daylight Time, stimits@comcast.net writes:
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!


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]