This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: How can I get stylesheet to bold?


> From: Jeffrey Franks <jfranks@quik.com>
> 
> 1) Problem Description:
> 
> How can I get the html style sheet to bold
> for markup <emphasis role="strong"> ?
> 
> 2) DocBook Xml DTD: V4.1.2 
> 3) DocBook Style:   V1.41
> 4) Style Sheet:     html xtchunk.xsl
> 5) Xt:              V19991105 under Xae
> 6) Xp:              V0.5 under Xae
> 7) Xae:             V1.0 beta 6

The XSL stylesheets are currently set up to respond
only to role="bold" (semantic markup only by
a stretch, IMHO).  Since the definitive guide
mentions using either "bold" or "strong", and
since "strong" is more semantic, I think
the stylesheets should probably support both.  But
if you want bold today, you either have to change
your attribute values to "bold" or add this
customization to your processing:

<xsl:template match="emphasis">
  <xsl:choose>
    <xsl:when test="@role='bold'|@role='strong'">  <!-- changed line -->
      <xsl:call-template name="inline.boldseq"/>
    </xsl:when>
    <xsl:otherwise>
      <xsl:call-template name="inline.italicseq"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>
                  

bobs
Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com

------------------------------------------------------------------
To unsubscribe from this elist send a message with the single word
"unsubscribe" in the body to: docbook-apps-request@lists.oasis-open.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]