Changeset 8583

Show
Ignore:
Timestamp:
07/22/10 16:23:28 (7 weeks ago)
Author:
lmurdock
Message:

changed so that we output <em> and <strong> for italic and bold, rather than <i> and <b>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/XSL-refactor/ambra/webapp/src/main/resources/plos.xsl

    r8577 r8583  
    10971097        </xsl:template> 
    10981098 
    1099     <!-- 10/21/09: viewnlm contains section 16 (display-quote), section 17 (speech and its internals, section 18 (statement and its internals), and section 19 (verse-group and its internals) --> 
     1099    <!-- 10/21/09: viewnlm contains section 16 (display-quote) --> 
     1100 
     1101    <!-- ============================================================= --> 
     1102        <!--  17. SPEECH and its internals                                 --> 
     1103        <!-- ============================================================= --> 
     1104 
     1105    <!-- 7/22/10: viewnlm contains most of the templates in this section --> 
     1106 
     1107    <!-- 7/22/10: plos modifications. we don't currently use this, so overriding with empty template, but if we ever reinstate it, we'll need to replace the viewnlm <b> with <strong> --> 
     1108    <xsl:template match="speaker" mode="show-it-here" /> 
     1109 
     1110    <!-- ============================================================= --> 
     1111        <!--  18. STATEMENT and its internals                              --> 
     1112        <!-- ============================================================= --> 
     1113 
     1114    <!-- 7/22/10: viewnlm contains template statement --> 
     1115 
     1116    <!-- 7/22/10: plos modifications. we don't currently use this, so overriding with empty template, but if we ever reinstate it, we'll need to replace viewnlm <b> with <strong> --> 
     1117    <xsl:template match="statement/label | statement/title" /> 
     1118 
     1119    <!-- 7/22/10: viewnlm contains section 19 (verse-group and its internals) --> 
    11001120 
    11011121    <!-- ============================================================= --> 
     
    11791199    <!-- 10/21/09: viewnlm contains most templates in this section --> 
    11801200 
     1201    <!-- 7/22/10: plos modifications --> 
     1202    <xsl:template match="bold"> 
     1203                <strong> 
     1204                        <xsl:apply-templates/> 
     1205                </strong> 
     1206        </xsl:template> 
     1207 
     1208    <!-- 7/22/10: plos modifications --> 
     1209        <xsl:template match="italic"> 
     1210                <em> 
     1211                        <xsl:apply-templates/> 
     1212                </em> 
     1213        </xsl:template> 
     1214 
    11811215    <!-- 4/23/10: plos modifications --> 
    11821216    <xsl:template match="sc//text()"> 
     
    15801614      <xsl:choose> 
    15811615        <xsl:when test="not(.//italic) and not (.//sup)"> 
    1582           <sup><i> 
     1616          <sup><em> 
    15831617            <xsl:element name="a"> 
    15841618              <xsl:attribute name="href">#<xsl:value-of select="@rid"/></xsl:attribute> 
    15851619              <xsl:apply-templates/> 
    15861620            </xsl:element> 
    1587           </i></sup> 
     1621          </em></sup> 
    15881622        </xsl:when> 
    15891623        <xsl:when test="not(.//italic)"> 
    1590           <i> 
     1624          <em> 
    15911625            <xsl:element name="a"> 
    15921626              <xsl:attribute name="href">#<xsl:value-of select="@rid"/></xsl:attribute> 
     
    15941628              <xsl:value-of select="sup"/> 
    15951629            </xsl:element> 
    1596           </i> 
     1630          </em> 
    15971631        </xsl:when> 
    15981632        <xsl:otherwise> 
     
    16591693        </xsl:template> 
    16601694     
    1661     <!-- 11/3/09: viewnlm contains templates (aff-outside-contrib, on-behalf-of, role, email, author-notes mode front, author-notes title) --> 
     1695    <!-- 11/3/09: viewnlm contains templates (aff-outside-contrib, role, email, author-notes mode front) --> 
     1696 
     1697    <!-- 7/22/10: plos modifications --> 
     1698    <xsl:template match="author-notes/title" mode="front"> 
     1699                <strong> 
     1700                        <xsl:apply-templates/> 
     1701                </strong> 
     1702                <br/> 
     1703                <xsl:call-template name="nl-1"/> 
     1704        </xsl:template> 
    16621705 
    16631706    <!-- 11/3/09: plos modifications (major) -->