Paul wrote:
> Recently I switched to the standard version 2.7
> 
> I have links to gifs that were generated using the "Powerpoint 97 SR-2" 
> save as GIF feature.
> Note: Powerpoint can do this for one slide or for the complete slideshow.
> 
> The behaviour I experience is that XXE now tells me I need the 
> professional edition for the Powerpoint generated slides (but only if I 
> generate the complete slideshow) when I try to convert my article to html.
> 
> Is this a bug?
> ==========
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
> "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd";>
> <article>
>   <title>XXE</title>
> 
>   <section>
>     <title>GIF from powerpoint</title>
> 
>     <para></para>
> 
>     <figure>
>       <title></title>
> 
>       <mediaobject>
>         <imageobject>
>           <imagedata fileref="XXE/Slide1.GIF" />
>         </imageobject>
>       </mediaobject>
>     </figure>
>   </section>
> </article>
> ==========
> ++++++++++
> A small GIF in attach, sorry for that.
> ++++++++++

Not really, XXE behaves as specified docb.toHTML process command.

----
.
.
.
       <copyDocument to="__doc.xml">

        <cfg:extract xmlns="" xpath="//imageobject/svg:svg" toDir="raw">
          <imagedata fileref="resources/{$url.rootName}.png" />
        </cfg:extract>

         <resources match="(https|http|ftp)://.*" />
         <resources match=".+\.(png|jpg|jpeg|gif)"
                    copyTo="resources" />
         <resources match="(?:.+/)?(.+)\.(\w+)"
                    copyTo="raw" referenceAs="resources/$1.png" />
         <resources match=".+"
                    copyTo="resources" />
       </copyDocument>
.
.
.
---

==> 2 workarounds for your problem:

[1] Rename "Slide1.GIF" to "Slide1.gif". That is always, use lower-case 
extensions for your image files.

[2] OR Fix the docb.toHTML process command. Edit 
XXE_install_dir/config/docbook/xslMenu.incl and change:

---
match=".+\.(png|jpg|jpeg|gif)"
---

to:
---
match=".+\.(png|jpg|jpeg|gif|PNG|JPG|JPEG|GIF)"
---

Of course, you'll find this fixed/improved in the next release.



Reply via email to