[sword-svn] r140 - in trunk/thml2osis/xslt: . tests

lukeplant at www.crosswire.org lukeplant at www.crosswire.org
Thu Apr 3 02:46:47 MST 2008


Author: lukeplant
Date: 2008-04-03 02:46:47 -0700 (Thu, 03 Apr 2008)
New Revision: 140

Modified:
   trunk/thml2osis/xslt/tests/body1.osis.flat
   trunk/thml2osis/xslt/tests/body1.thml
   trunk/thml2osis/xslt/thml2osis.xslt
Log:
Added support for converting <verse> and tests for <verse> and <l>


Modified: trunk/thml2osis/xslt/tests/body1.osis.flat
===================================================================
--- trunk/thml2osis/xslt/tests/body1.osis.flat	2008-04-03 09:26:46 UTC (rev 139)
+++ trunk/thml2osis/xslt/tests/body1.osis.flat	2008-04-03 09:46:47 UTC (rev 140)
@@ -659,6 +659,9 @@
 /osis/osisText/div/div/div/reference
 /osis/osisText/div/div/div/reference/@osisRef=Bible:Ps.89.5
 /osis/osisText/div/div/div/reference=inner ref 2
+/osis/osisText/div/div/div/lg/l=O God, a world of empty show,
+/osis/osisText/div/div/div/lg/l
+/osis/osisText/div/div/div/lg/l=Dark wilds of restless, fruitless quest
 /osis/osisText/div/div/div=
 /osis/osisText/div/div/div=Added text
 /osis/osisText/div/div/div=

Modified: trunk/thml2osis/xslt/tests/body1.thml
===================================================================
--- trunk/thml2osis/xslt/tests/body1.thml	2008-04-03 09:26:46 UTC (rev 139)
+++ trunk/thml2osis/xslt/tests/body1.thml	2008-04-03 09:46:47 UTC (rev 140)
@@ -412,6 +412,10 @@
   <a href="#xii.i-p80.2">1</a></li>
 </ul>
 		Test <scripRef osisRef="Bible:2Sam.7.13">outer <i>ref</i><scripRef osisRef="Bible:1Chr.22.10">inner ref</scripRef><scripRef osisRef="Bible:Ps.89.5">inner ref 2</scripRef></scripRef>
+<verse>
+<l class="t1">O God, a world of empty show,</l>
+<l class="t2">Dark wilds of restless, fruitless quest</l>
+</verse>
 <added>Added text</added>
 <deleted>Deleted text</deleted>
 <unclear>Unclear text</unclear>

Modified: trunk/thml2osis/xslt/thml2osis.xslt
===================================================================
--- trunk/thml2osis/xslt/thml2osis.xslt	2008-04-03 09:26:46 UTC (rev 139)
+++ trunk/thml2osis/xslt/thml2osis.xslt	2008-04-03 09:46:47 UTC (rev 140)
@@ -454,9 +454,17 @@
     </note>
   </xsl:template>
 
+  <!-- verse -->
+  <xsl:template match="//ThML.body//verse">
+    <xsl:call-template name="changename">
+      <xsl:with-param name="name">lg</xsl:with-param>
+      <xsl:with-param name="excludeattributes">class id</xsl:with-param>
+    </xsl:call-template>
+  </xsl:template>
+
+
 <!-- TODO
 
-- verse -> lg
 - date - conversion
 
 -->




More information about the sword-cvs mailing list