diff options
author | Luke S. <luke@motimail.com> | 2008-04-03 09:46:47 +0000 |
---|---|---|
committer | Luke S. <luke@motimail.com> | 2008-04-03 09:46:47 +0000 |
commit | dd70bee1d6f7e2db28cda98d0b797ac80f61145c (patch) | |
tree | 3b569aac5c65b6bad9db8d3ab2aa870371f89390 | |
parent | 563aae9cdd3e38e4f893031c31abfa56850fa2f2 (diff) | |
download | sword-tools-dd70bee1d6f7e2db28cda98d0b797ac80f61145c.tar.gz |
Added support for converting <verse> and tests for <verse> and <l>
git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@140 07627401-56e2-0310-80f4-f8cd0041bdcd
-rw-r--r-- | thml2osis/xslt/tests/body1.osis.flat | 3 | ||||
-rw-r--r-- | thml2osis/xslt/tests/body1.thml | 4 | ||||
-rw-r--r-- | thml2osis/xslt/thml2osis.xslt | 10 |
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 --> |