<!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">Thank you, Sebastien. I had
copied the wrong xsl file to the archive. I have remedied that in the
attached file as well as incorporating one of your suggestions. I will
take a look at the rest when I have some time to test the results.
Thanks so much.<br>
<br>
Daniel<br>
</font><br>
Sebastien Koechlin wrote:
<blockquote cite="mid:20080214073240.GB24490@koocotte.org" type="cite">
<pre wrap="">On Wed, Feb 13, 2008 at 01:36:22PM +0700, Daniel Owens wrote:
</pre>
<blockquote type="cite">
<pre wrap=""><font face="Helvetica, Arial, sans-serif">I made some modifications to
the XSLT to make provision for Scripture references and to simplify how
images are handled. The attached zip archive contains the filter,
instructions, and a few other useful files related to the filter. I
will update the instructions on the wiki once it is
up and running again. For now, though, here is version 1.0 of the
filter. Enjoy!<br>
<br>
Daniel<br>
</pre>
</blockquote>
<pre wrap=""><!---->
This look great.
I did not find oowriter2osis.xsl in your last zip file, so I read the file
you posted on Feb 8. You should avoid using 'disable-output-escaping' if
possible because:
- It makes you mix structure and content
- It can produce invalide XML
- The XML tree produced is not usable unless serialized
- You can open a tag in a template and close it in another
In <xsl:template name="header">, you have
        <xsl:text disable-output-escaping="yes"><refSystem>Bible</refSystem></xsl:text>
, but
        <refSystem>Bible</refSystem>
should do the same.
When looking for help about XSLT, I use
<a class="moz-txt-link-freetext" href="http://www.w3schools.com/xsl/xsl_w3celementref.asp">http://www.w3schools.com/xsl/xsl_w3celementref.asp</a> and
<a class="moz-txt-link-freetext" href="http://www.w3schools.com/xpath/xpath_functions.asp">http://www.w3schools.com/xpath/xpath_functions.asp</a> is for XPath.
You should read the full XSLT tag list to see which exist.
For <xsl:template match="text:h">, you have
        <xsl:variable name="sectvar">
                <xsl:text>div</xsl:text>
        </xsl:variable>
        <xsl:variable name="idvar">
                <xsl:text> type="x-</xsl:text>
                <xsl:value-of select="@text:style-name"/>
                <xsl:text>"</xsl:text>
        </xsl:variable>
        <xsl:text disable-output-escaping="yes"><</xsl:text>
        <xsl:value-of select="$sectvar"/>
        <xsl:value-of select="$idvar"/>
        <xsl:text disable-output-escaping="yes">></xsl:text>
        <xsl:apply-templates/>
        <xsl:text disable-output-escaping="yes"></</xsl:text>
        <xsl:value-of select="$sectvar"/>
        <xsl:text disable-output-escaping="yes">></xsl:text>
But with <xsl:attribute> you can do the same (not tested):
        <xsl:variable name="idvar" select="@text:style-name"/>
        <div>
                <xsl:attribute name="type">
                        <xsl:text><xsl:value-of select="concat('x-',$idvar)"/></xsl:text>
                </xsl:attribute>
                <xsl:apply-templates/>        
        </div>        
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
PMBX license 1502
</pre>
</body>
</html>