Antony Blakey wrote:
> I'm evaluating XXE. I'm wondering how I can get the HTML output to
> include the SVG directly, rather than having it converted to PNG?
>
In theory, yes. However I never got my Web browser (Firefox 2) to
properly display HTML embedding SVG generated using the DocBook XSL
style sheets.
I did that:
[1] Edit XXE_install_dir/addon/config/docbook5/xslMenu.incl.
[2] Go to process command
<command name="db5.convertStep1">
and comment out the following directive:
<!--
<cfg:extract xmlns=""
xmlns:db5="http://docbook.org/ns/docbook"
xmlns:svg="http://www.w3.org/2000/svg"
xpath="//db5:imagedata/svg:svg" toDir="raw" >
<cfg:attribute name="fileref"
value="resources/{$url.rootName}.png" />
</cfg:extract>
-->
[3] Open XXE_install_dir/demo/docbook5-sample.xml (which contains 2
<svg:svg> subtrees) and use "Convert Document|Convert to HTML [one page,
no TOC]".
The generated .html file indeed contains an <svg:svg> subtree but
Firefor does not display it.
Then I've added the following parameters to process commands
<command name="db5.toHTML">
and
<command name="db5.toHTML1">
---
<parameter name="use.svg">1</parameter>
<parameter name="use.embed.for.svg">1</parameter>
---
and tried again to convert docbook5-sample.xml. Still no success with
Firefox.
---
PS: the xslMenu.incl configuration file I've modified is attached to
this email.
---
PS 2: Process commands are documented here:
http://www.xmlmind.com/xmleditor/_distrib/doc/commands/process.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xslMenu.incl
Type: text/xml
Size: 23833 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20080616/b367eec1/attachment.xml