[sword-svn] r124 - trunk/thml2osis/xslt

lukeplant at www.crosswire.org lukeplant at www.crosswire.org
Thu Nov 29 16:32:00 MST 2007


Author: lukeplant
Date: 2007-11-29 16:32:00 -0700 (Thu, 29 Nov 2007)
New Revision: 124

Modified:
   trunk/thml2osis/xslt/thml2osis.xslt
Log:
Preserve comments in original ThML


Modified: trunk/thml2osis/xslt/thml2osis.xslt
===================================================================
--- trunk/thml2osis/xslt/thml2osis.xslt	2007-11-29 23:29:43 UTC (rev 123)
+++ trunk/thml2osis/xslt/thml2osis.xslt	2007-11-29 23:32:00 UTC (rev 124)
@@ -221,6 +221,12 @@
 
 
   <!-- BODY -->
+  <!-- comments -->
+  <xsl:template match="//ThML.body//comment()">
+    <xsl:comment>
+      <xsl:value-of select = "." />
+    </xsl:comment>
+  </xsl:template>
 
   <!-- div -->
   <xsl:template match="//ThML.body//div1 | //ThML.body//div2 | //ThML.body//div3">




More information about the sword-cvs mailing list