<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The OpenOffice OSIS export filter is well on its way to being usable,
but I am trying to figure out how to render images. I have the
following code:<br>
<br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 2.3  (Linux)">
<style type="text/css">
        <!--
                @page { size: 21.59cm 27.94cm; margin: 2cm }
                P { margin-bottom: 0.21cm }
        -->   </style><tt> 
&lt;xsl:template match="draw:image"&gt;<br>
    &lt;figure&gt;<br>
      &lt;xsl:attribute name="src"&gt;<br>
        &lt;xsl:choose&gt;<br>
          <u>&lt;xsl:when test="@xlink:href"&gt;</u><br>
            <u>&lt;xsl:value-of select="@xlink:href" /&gt;</u><br>
          &lt;/xsl:when&gt;<br>
          &lt;xsl:otherwise&gt;<br>
            &lt;xsl:text&gt;Missing image path&lt;/xsl:text&gt;<br>
          &lt;/xsl:otherwise&gt;<br>
        &lt;/xsl:choose&gt;<br>
      &lt;/xsl:attribute&gt;<br>
    &lt;/figure&gt;<br>
  &lt;/xsl:template&gt;</tt><br>
<br>
Here is the source xml from an .odt file:<br>
<br>
<tt>&lt;draw:image
<u>xlink:href="Pictures/1000000000000190000000942BD8CECD.jpg"</u>
xlink:type="simple" xlink:show="embed"
xlink:actuate="onLoad"/&gt;<br>
</tt><br>
Here is what is exported currently:<br>
<tt><br>
</tt><tt>  &lt;figure src="Missing image path</tt><tt>"/&gt;</tt>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 2.3  (Linux)">
<br>
<br>
Here is what I want to be exported:<br>
<br>
<tt>  &lt;figure src="</tt><tt><u>Pictures/1000000000000190000000942BD8CECD.jpg</u></tt><tt>"/&gt;</tt>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 2.3  (Linux)">
<style type="text/css">
        <!--
                @page { size: 21.59cm 27.94cm; margin: 2cm }
                P { margin-bottom: 0.21cm }
        -->
        </style><br>
<br>
I've underlined the part of the code that is the source of difficulty.
I'd appreciate any help.<br>
<br>
Daniel<br>
</body>
</html>