f



Compiled Help (CHM) and SVG

I convert DocBook into HTML, CHM and PDF. I use SVG images within my
DocBook documents. In the resulting HTML pages I see those SVG with IE
and Adobe Plugin however they do not appear in my CHM although it is
compiled from the same HTML files. There are some XSLT parameters which
I use:

<xsl:param name="use.svg" select="1"></xsl:param>
<xsl:param name="use.embed.for.svg" select="1"/>

The resulting HTML code is:
<object type="image/svg+xml" data="some.svg"
    width="720" height="415">
    <embed type="image/svg+xml" src="some.svg"
        width="720" height="415">
    </embed>
</object>

It does not work with or without <embed>. Even <embed> alone do not
work. I was wondering because I thought that this was working a while
ago but I am not sure.
Anybody an idea ... ?

__
Tom

0
bauer (27)
7/19/2005 5:21:55 PM
comp.text.xml 8781 articles. 0 followers. Post Follow

3 Replies
1063 Views

Similar Articles

[PageSpeed] 37

Tom,

> I convert DocBook into HTML, CHM and PDF. I use SVG images within my
> DocBook documents. In the resulting HTML pages I see those SVG with IE
> and Adobe Plugin however they do not appear in my CHM although it is
> compiled from the same HTML files...

If you haven't already done so, you could try adding the names of the
..svg files to the [FILES] list in your project (.hhp) file. This will
ensure that the .svg files are compiled into the help file, which may
not be the case at present.

If you're using HTML Help Workshop, the procedure for adding the file
names to the [FILES] section is as follows:

1) Open the .hhp file in HTML Help Workshop.

2) Click the Add/Remove Topic Files button on the Project tab.

3) Click Add.

4) In the File Name field, type *.svg.

5) Click Open, select the files to add to the list, and then click Open
again.

--
Pete (Microsoft Help MVP)

0
PD.Lees (16)
7/19/2005 7:03:48 PM
Well, this has some effect. But anyway the SVG is not shown. There is a
light gray placeholder instead of the image. This was so even without
the added SVG in the [FILES] section. The difference is that I get now
the context menu of the Adobe plugin when right clicking with the mouse
over the area.

0
bauer (27)
7/19/2005 7:38:22 PM
It works! After the partial success with the [FILES] section I played
again with the combinations of <object> and <embed> tags. With <embed>
tags alone and all SVG's listed in .hhp file they will show in CHM.
Thank you Pete for pointing in the right direction.
Maybe this is a bug in DocBook XSLT?
__
Tom

0
bauer (27)
7/20/2005 6:36:01 AM
Reply: