summaryrefslogtreecommitdiffstats
path: root/thml2osis
diff options
context:
space:
mode:
Diffstat (limited to 'thml2osis')
-rw-r--r--thml2osis/xslt/tests/body1.osis.flat3
-rw-r--r--thml2osis/xslt/tests/body1.thml4
-rw-r--r--thml2osis/xslt/thml2osis.xslt10
3 files changed, 16 insertions, 1 deletions
diff --git a/thml2osis/xslt/tests/body1.osis.flat b/thml2osis/xslt/tests/body1.osis.flat
index 0bdf1ba..6ea0291 100644
--- a/thml2osis/xslt/tests/body1.osis.flat
+++ b/thml2osis/xslt/tests/body1.osis.flat
@@ -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=
diff --git a/thml2osis/xslt/tests/body1.thml b/thml2osis/xslt/tests/body1.thml
index 6718684..8f647f8 100644
--- a/thml2osis/xslt/tests/body1.thml
+++ b/thml2osis/xslt/tests/body1.thml
@@ -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>
diff --git a/thml2osis/xslt/thml2osis.xslt b/thml2osis/xslt/thml2osis.xslt
index bd601b2..0ba7fb0 100644
--- a/thml2osis/xslt/thml2osis.xslt
+++ b/thml2osis/xslt/thml2osis.xslt
@@ -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
-->