comparison summa/english/thml.html.xsl @ 50:3ce619c8ea60

another link fix
author ht
date Sun, 27 Dec 2009 18:20:15 +0000
parents 9b6e0e444322
children 093a560860d9
comparison
equal deleted inserted replaced
49:1684b7ec0b10 50:3ce619c8ea60
1369 <!-- scripref: link to /ccel/bible reference --> 1369 <!-- scripref: link to /ccel/bible reference -->
1370 <xsl:template match="scripRef" mode="includeParsing"> 1370 <xsl:template match="scripRef" mode="includeParsing">
1371 1371
1372 <!-- parse osisRef to get bk, ch --> 1372 <!-- parse osisRef to get bk, ch -->
1373 <xsl:variable name="psg"><xsl:value-of select="substring-before(concat( 1373 <xsl:variable name="psg"><xsl:value-of select="substring-before(concat(
1374 substring-after(@osisRef,':'),'-'),'-')"/></xsl:variable> 1374 substring-after(substring-before(concat(@osisRef,' '),' '),':'),'-'),'-')"/></xsl:variable>
1375 <xsl:variable name="bk1"><xsl:value-of select="substring-before($psg,'.')"/></xsl:variable> 1375 <xsl:variable name="bk1"><xsl:value-of select="substring-before($psg,'.')"/></xsl:variable>
1376 <xsl:variable name="bk"> 1376 <xsl:variable name="bk">
1377 <xsl:choose> 1377 <xsl:choose>
1378 <xsl:when test="starts-with($bk1,'1')"><xsl:value-of select="concat('i',substring-after($bk1,'1'))"/></xsl:when> 1378 <xsl:when test="starts-with($bk1,'1')"><xsl:value-of select="concat('i',substring-after($bk1,'1'))"/></xsl:when>
1379 <xsl:when test="starts-with($bk1,'2')"><xsl:value-of select="concat('ii',substring-after($bk1,'2'))"/></xsl:when> 1379 <xsl:when test="starts-with($bk1,'2')"><xsl:value-of select="concat('ii',substring-after($bk1,'2'))"/></xsl:when>