<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
<font face="Helvetica, Arial, sans-serif">I double-checked to make sure
that the namespace in the XSLT was the same as in the source document,
and it was.</font><br>
<br>
Daniel Owens wrote:
<blockquote cite="mid:47AC2189.7040005@pmbx.net" type="cite">
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <font face="Helvetica, Arial, sans-serif">Greg,<br>
  <br>
I checked the &lt;xsl:stylesheet&gt; element and found that the xlink
namespace was already declared in the XSLT as: </font><tt>xmlns:xlink=<a
 moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a></tt><font
 face="Helvetica, Arial, sans-serif">. Not sure what to do next.<br>
  <br>
Daniel<br>
  </font><tt><br>
&lt;xsl:stylesheet  <br>
  office:version="1.0" version="1.0"     <br>
  xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"<br>
  xmlns:dc=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://purl.org/dc/elements/1.1/">"http://purl.org/dc/elements/1.1/"</a><br>
  xmlns:dom=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2001/xml-events">"http://www.w3.org/2001/xml-events"</a><br>
  xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"<br>
  xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"<br>
  xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"<br>
  xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"<br>
  xmlns:math=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/1998/Math/MathML">"http://www.w3.org/1998/Math/MathML"</a><br>
  xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"<br>
  xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"<br>
  xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"<br>
  xmlns:ooo=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://openoffice.org/2004/office">"http://openoffice.org/2004/office"</a><br>
  xmlns:oooc=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://openoffice.org/2004/calc">"http://openoffice.org/2004/calc"</a><br>
  xmlns:ooow=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://openoffice.org/2004/writer">"http://openoffice.org/2004/writer"</a><br>
  xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"<br>
  xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"<br>
  xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"<br>
  xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"<br>
  xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"<br>
  xmlns:xforms=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2002/xforms">"http://www.w3.org/2002/xforms"</a><br>
  xmlns:xlink=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a><br>
  xmlns:xsd=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2001/XMLSchema">"http://www.w3.org/2001/XMLSchema"</a><br>
  xmlns:xsi=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a><br>
  xmlns:xsl=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.w3.org/1999/XSL/Transform">"http://www.w3.org/1999/XSL/Transform"</a><br>
  exclude-result-prefixes="office style text table draw fo xlink dc
meta number svg chart dr3d math form script ooo ooow oooc dom xforms
xsd"<br>
  xmlns=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
 href="http://www.bibletechnologies.net/2003/OSIS/namespace">"http://www.bibletechnologies.net/2003/OSIS/namespace"</a>&gt;</tt><br>
  <br>
Greg Hellings wrote:
  <blockquote
 cite="mid:75a952c00802080057m238fad36h8dd247ef71d97977@mail.gmail.com"
 type="cite">
    <pre wrap="">Daniel,

Hmm, that's upsetting.

On Feb 8, 2008 1:44 AM, Daniel Owens <a moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" href="mailto:dhowens@pmbx.net">&lt;dhowens@pmbx.net&gt;</a> wrote:
  </pre>
    <blockquote type="cite">
      <pre wrap=""> Greg,

 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.

 Any other ideas?
    </pre>
    </blockquote>
    <pre wrap=""><!---->
So testing this with xsltproc, I was forced to declare the xlink:
namespace in the XSLT itself, and not just rely on the declaration of
it in the XML file.  Once I declared that, everything worked well (you
might want to add it to the list of suppressed namespaces as well, so
you don't get extraneous random namespace declarations in your OSIS
document).  I don't know the proper namespace URL for xlink, but I
just added something like xmlns:xlink=<a moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" href="http://www.yahoo.com">"http://www.yahoo.com"</a> to the
root stylesheet element, and that was sufficient.  It just has to
match the same URL that is declared with the xmlns:xlink="URL HERE" in
the document's XML definition.

--Greg

  </pre>
    <blockquote type="cite">
      <pre wrap=""> Daniel



 Greg Hellings wrote:
 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 moz-do-not-send="true"
 class="moz-txt-link-rfc2396E" href="mailto:dhowens@pmbx.net">&lt;dhowens@pmbx.net&gt;</a> wrote:


 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:

 &lt;xsl:template match="draw:image"&gt;
 &lt;figure&gt;
 &lt;xsl:attribute name="src"&gt;
 &lt;xsl:choose&gt;
 &lt;xsl:when test="@xlink:href"&gt;
 &lt;xsl:value-of select="@xlink:href" /&gt;

 Make these
&lt;xsl:when test="xlink:@href"&gt;
 &lt;xsl:value-of select="xlink:@href" /&gt;

and you might have success. That's just a shot in the dark, but it's
what I would try first.

--Greg



 &lt;/xsl:when&gt;
 &lt;xsl:otherwise&gt;
 &lt;xsl:text&gt;Missing image path&lt;/xsl:text&gt;
 &lt;/xsl:otherwise&gt;
 &lt;/xsl:choose&gt;
 &lt;/xsl:attribute&gt;
 &lt;/figure&gt;
 &lt;/xsl:template&gt;

 Here is the source xml from an .odt file:

 &lt;draw:image xlink:href="Pictures/1000000000000190000000942BD8CECD.jpg"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"/&gt;

 Here is what is exported currently:

 &lt;figure src="Missing image path"/&gt;

 Here is what I want to be exported:

 &lt;figure src="Pictures/1000000000000190000000942BD8CECD.jpg"/&gt;

 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 moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a moz-do-not-send="true" 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


 _______________________________________________
sword-devel mailing list: <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a moz-do-not-send="true" 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



 --
PMBX license 1502


_______________________________________________
sword-devel mailing list: <a moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true"
 class="moz-txt-link-abbreviated"
 href="mailto:sword-devel@crosswire.org">sword-devel@crosswire.org</a>
<a moz-do-not-send="true" 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>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
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>