<!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">
<font face="Helvetica, Arial, sans-serif">Greg,<br>
<br>
Thanks for the suggestion. Unfortunately it didn't work. I think the
xlink:href is the whole attribute name, which is why the OOo-to-TEI
XSLT filter had the attribute character before xlink. <br>
<br>
Any other ideas?<br>
<br>
Daniel<br>
</font><br>
Greg Hellings wrote:
<blockquote
cite="mid:75a952c00802072305h14579962r1b3b81a5c3aa6a9a@mail.gmail.com"
type="cite">
<pre wrap="">Daniel,
I'm not 100% sure on this, but XSL might expect the attribute
indicator (the character @) to be on the attribute name rather than on
the namespace token. Try changing those lines as follows:
On Feb 8, 2008 12:59 AM, Daniel Owens <a class="moz-txt-link-rfc2396E" href="mailto:dhowens@pmbx.net"><dhowens@pmbx.net></a> wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> 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:
<xsl:template match="draw:image">
<figure>
<xsl:attribute name="src">
<xsl:choose>
<xsl:when test="@xlink:href">
<xsl:value-of select="@xlink:href" />
</pre>
</blockquote>
<pre wrap=""><!---->
Make these
<xsl:when test="xlink:@href">
<xsl:value-of select="xlink:@href" />
and you might have success. That's just a shot in the dark, but it's
what I would try first.
--Greg
</pre>
<blockquote type="cite">
<pre wrap=""> </xsl:when>
<xsl:otherwise>
<xsl:text>Missing image path</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</figure>
</xsl:template>
Here is the source xml from an .odt file:
<draw:image xlink:href="Pictures/1000000000000190000000942BD8CECD.jpg"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/>
Here is what is exported currently:
<figure src="Missing image path"/>
Here is what I want to be exported:
<figure src="Pictures/1000000000000190000000942BD8CECD.jpg"/>
I've underlined the part of the code that is the source of difficulty. I'd
appreciate any help.
Daniel
_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page
</pre>
</blockquote>
<pre wrap=""><!---->
_______________________________________________
sword-devel mailing list: <a class="moz-txt-link-abbreviated" href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a class="moz-txt-link-freetext" href="http://www.crosswire.org/mailman/listinfo/sword-devel">http://www.crosswire.org/mailman/listinfo/sword-devel</a>
Instructions to unsubscribe/change your settings at above page
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
PMBX license 1502
</pre>
</body>
</html>