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: SVG how to


Hi,

I am new to this list and also fairly new to docbook.

I am using docbook utils from
http://www.linuxfromscratch.org/blfs/view/stable/pst/docbook-utils.html
to convert my xml files to HTML, PDF and RTF.

I'd like to include svg graphics in my document and found some info
online. I have the following xml code for a simple test document

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook SVG Module V1.1CR1//EN"
	"http://www.oasis-open.org/docbook/xml/svg/1.1CR1/dbsvg.dtd";>
<article>
  <section>
    <title>Certification Charts</title>
    <para>Sample doc.</para>
    <mediaobject id="svgTest">
      <imageobject>
        <imagedata format="SVG" fileref="test.svg" width="10cm"
                   height="10cm"/>
      </imageobject>
    </mediaobject>
    <para>Some other text</para>
  </section>
</article>

% jw -b html -d my_config.dsl -u test.xml
is used to transform the test file.
The generated HTML code for the SVG graphic is
<div class="mediaobject"><p></p></div>

Concerning this I have a couple of questions:

Can the docbook utils be used for transforming files that contain svg
(without svg it works fine)?

Is the '<!DOCTYPE ...' correct and necessary or can I use the locally
installed docbook DTDs?

Is there something obvious I'm doing wrong?

How to integrate svg directly into the xml file without having an
external svg file?

Thanks in advance for your time and answers,
Roger



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