<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE: XHTML export of doc with image broken"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=61096">bug 61096</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>serval2412@yahoo.fr
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE: XHTML export of doc with image broken"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=61096#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - FILESAVE: XHTML export of doc with image broken"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=61096">bug 61096</a>
from <span class="vcard"><a class="email" href="mailto:serval2412@yahoo.fr" title="Julien Nabet <serval2412@yahoo.fr>"> <span class="fn">Julien Nabet</span></a>
</span></b>
<pre>(In reply to Greg Ross from <a href="show_bug.cgi?id=61096#c7">comment #7</a>)
<span class="quote">> Two updates to the above code, use correct variable for the href name and
> use ends-with() to ensure not to catches files like "name.jpeg.txt":
>
> <xsl:choose>
> <xsl:when test="ends-with(upper-case($href), '.JPG') or
> ends-with(upper-case($href), '.JPEG')">
> <xsl:text>data:image/jpg;base64,</xsl:text><xsl:value-of
> select="office:binary-data"/>
> </xsl:when>
> <xsl:when test="ends-with(upper-case($href), '.SVG')">
> <xsl:text>data:image/svg;base64,</xsl:text><xsl:value-of
> select="office:binary-data"/>
> </xsl:when>
> <xsl:otherwise>
> <xsl:text>data:image/png;base64,</xsl:text><xsl:value-of
> select="office:binary-data"/>
> </xsl:otherwise>
> </xsl:choose></span >
I tried to directly replace image/* by image/jpg, image/png, image/bmp and
image/svg directly on resulting file, it still doesn't image.
I converted doc file in odt then unzipped it and found a wmf file.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>