forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: rev 54086 - forrest/trunk/src/core/context/resources/stylesheets
Date Fri, 08 Oct 2004 14:25:58 GMT
Author: crossley
Date: Fri Oct  8 07:25:57 2004
New Revision: 54086

Modified:
   forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl
Log:
Add @role support to emphasis template.
Submitted by Sean Wheller sean<AT>inwords.co.za
FOR-315


Modified: forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl
==============================================================================
--- forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl	(original)
+++ forrest/trunk/src/core/context/resources/stylesheets/docbook2document.xsl	Fri Oct  8 07:25:57
2004
@@ -330,8 +330,15 @@
       </xsl:template>
 
       <xsl:template match="emphasis">
-            <em><xsl:apply-templates/></em>
-      </xsl:template>
+          <xsl:choose>
+              <xsl:when test="@role='bold'">
+                  <strong><xsl:apply-templates/></strong>
+              </xsl:when>
+              <xsl:otherwise>
+                  <em><xsl:apply-templates/></em>
+              </xsl:otherwise>
+          </xsl:choose>
+       </xsl:template>
 
       <xsl:template match="firstterm">
             <em><xsl:apply-templates/></em>

Mime
View raw message