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

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


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

Modified:
   trunk/thml2osis/xslt/tests/body1.osis.flat
   trunk/thml2osis/xslt/tests/body1.thml
   trunk/thml2osis/xslt/thml2osis.xslt
Log:
Added support for translating <em> tags


Modified: trunk/thml2osis/xslt/tests/body1.osis.flat
===================================================================
--- trunk/thml2osis/xslt/tests/body1.osis.flat	2008-01-30 23:17:16 UTC (rev 138)
+++ trunk/thml2osis/xslt/tests/body1.osis.flat	2008-04-03 09:26:46 UTC (rev 139)
@@ -609,6 +609,8 @@
 /osis/osisText/div/div/div/p=.)
 /osis/osisText/div/div/div/a/@href=http://www.ccel.org
 /osis/osisText/div/div/div/a=anchor test
+/osis/osisText/div/div/div/hi/@type=italic
+/osis/osisText/div/div/div/hi=Emphasised text
 /osis/osisText/div/div/div/div/@type=book
 /osis/osisText/div/div/div/div/title/@level=1
 /osis/osisText/div/div/div/div/title=Heading test 1

Modified: trunk/thml2osis/xslt/tests/body1.thml
===================================================================
--- trunk/thml2osis/xslt/tests/body1.thml	2008-01-30 23:17:16 UTC (rev 138)
+++ trunk/thml2osis/xslt/tests/body1.thml	2008-04-03 09:26:46 UTC (rev 139)
@@ -390,6 +390,7 @@
 		  <p id="vii.i-p87">so, on the other hand, as soon as the Lord takes away his Spirit, all things return to their dust and vanish away, (<scripRef id="vii.i-p87.1" osisRef="Bible:Ps.104.29" parsed="|Ps|104|29|0|0" passage="Ps 104:29">Psalm 104:29</scripRef>.)</p>
 
 		  <a href="http://www.ccel.org">anchor test</a>
+		  <em>Emphasised text</em>
 		  <div type="book">
 		  <h1>Heading test 1</h1>
 		  <h2>Heading test 2</h2>

Modified: trunk/thml2osis/xslt/thml2osis.xslt
===================================================================
--- trunk/thml2osis/xslt/thml2osis.xslt	2008-01-30 23:17:16 UTC (rev 138)
+++ trunk/thml2osis/xslt/thml2osis.xslt	2008-04-03 09:26:46 UTC (rev 139)
@@ -247,7 +247,7 @@
     </row>
   </xsl:template>
 
-  <xsl:template match="//ThML.body//i">
+  <xsl:template match="//ThML.body//i|//ThML.body//em">
     <hi type="italic">
       <xsl:apply-templates />
     </hi>




More information about the sword-cvs mailing list