]> granicus.if.org Git - docbook-dsssl/commitdiff
Fixed bug in emphasis
authorSteve Ball <balls@users.sourceforge.net>
Thu, 21 Aug 2008 23:41:40 +0000 (23:41 +0000)
committerSteve Ball <balls@users.sourceforge.net>
Thu, 21 Aug 2008 23:41:40 +0000 (23:41 +0000)
xsl/roundtrip/blocks2dbk.xsl

index dc8a0c57c3f4996e7f14fc21fdb687540512e35a..f9d710e350dae7cf18be3073661339626333617b 100644 (file)
         <xsl:copy>
           <xsl:call-template name='rnd:attributes'/>
           <xsl:apply-templates mode='rnd:copy'/>
+          <xsl:apply-templates select='following-sibling::node()[1]'
+            mode='rnd:emphasis'/>
         </xsl:copy>
       </xsl:when>
       <xsl:when test='@rnd:style = "emphasis-bold" or
           <xsl:attribute name='role'>bold</xsl:attribute>
           <xsl:call-template name='rnd:attributes'/>
           <xsl:apply-templates mode='rnd:copy'/>
+          <xsl:apply-templates select='following-sibling::node()[1]'
+            mode='rnd:emphasis'/>
         </xsl:copy>
       </xsl:when>
       <xsl:when test='@rnd:style = "emphasis-underline"'>
           <xsl:attribute name='role'>underline</xsl:attribute>
           <xsl:call-template name='rnd:attributes'/>
           <xsl:apply-templates mode='rnd:copy'/>
+          <xsl:apply-templates select='following-sibling::node()[1]'
+            mode='rnd:emphasis'/>
         </xsl:copy>
       </xsl:when>