]> granicus.if.org Git - docbook-dsssl/commitdiff
added support for explicit emphasis character styles
authorSteve Ball <balls@users.sourceforge.net>
Fri, 14 Sep 2007 02:16:48 +0000 (02:16 +0000)
committerSteve Ball <balls@users.sourceforge.net>
Fri, 14 Sep 2007 02:16:48 +0000 (02:16 +0000)
xsl/roundtrip/blocks2dbk.xsl

index 3f0102eb6aef36d25628274908d736087ef5d9f0..7d671f2c028522c1132b554638b1e932ab762bc1 100644 (file)
 
       <xsl:when test='@rnd:style = preceding-sibling::node()[self::dbk:emphasis]/@rnd:style'/>
 
+      <xsl:when test='@rnd:style = "emphasis"'>
+        <xsl:copy>
+          <xsl:call-template name='rnd:attributes'/>
+          <xsl:apply-templates mode='rnd:copy'/>
+        </xsl:copy>
+      </xsl:when>
+      <xsl:when test='@rnd:style = "emphasis-bold"'>
+        <xsl:copy>
+          <xsl:attribute name='role'>bold</xsl:attribute>
+          <xsl:call-template name='rnd:attributes'/>
+          <xsl:apply-templates mode='rnd:copy'/>
+        </xsl:copy>
+      </xsl:when>
+      <xsl:when test='@rnd:style = "emphasis-underline"'>
+        <xsl:copy>
+          <xsl:attribute name='role'>underline</xsl:attribute>
+          <xsl:call-template name='rnd:attributes'/>
+          <xsl:apply-templates mode='rnd:copy'/>
+        </xsl:copy>
+      </xsl:when>
+
       <xsl:when test='@rnd:style = "citetitle" or
                       @rnd:style = "literal" or
                       @rnd:style = "sgmltag"'>