<!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>
<xsl:template match="draw:image"><br>
<figure><br>
<xsl:attribute name="src"><br>
<xsl:choose><br>
<u><xsl:when test="@xlink:href"></u><br>
<u><xsl:value-of select="@xlink:href" /></u><br>
</xsl:when><br>
<xsl:otherwise><br>
<xsl:text>Missing image path</xsl:text><br>
</xsl:otherwise><br>
</xsl:choose><br>
</xsl:attribute><br>
</figure><br>
</xsl:template></tt><br>
<br>
Here is the source xml from an .odt file:<br>
<br>
<tt><draw:image
<u>xlink:href="Pictures/1000000000000190000000942BD8CECD.jpg"</u>
xlink:type="simple" xlink:show="embed"
xlink:actuate="onLoad"/><br>
</tt><br>
Here is what is exported currently:<br>
<tt><br>
</tt><tt> <figure src="Missing image path</tt><tt>"/></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> <figure src="</tt><tt><u>Pictures/1000000000000190000000942BD8CECD.jpg</u></tt><tt>"/></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>