[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] fop/xsltproc, External SVG Issue
Hi,I can't quite tell from your example, but is that mediaobject inside the book's info element? If so, then that's why it isn't showing up. By default, the stylesheet only outputs certain elements from the book info element, and mediaobject isn't one of them. Titlepages are generally individualistic, meaning they need some customization to match the author's expectations, so the stylesheets provide a mechanism to easily customize the titlepages. Let me know if that's the issue here.
As a test to see if the SVG itself is working, you could copy and paste the mediaobject element into a section, where it will be acted upon and should work.
Bob Stayton Sagehill Enterprises bobs@sagehill.net On 6/21/2016 3:34 PM, stimits@comcast.net wrote:
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]