Next in thread → Next in month →

Re: styling refentry blocks

From
Paul <>
Date
2009-04-27T16:45:13+00:00
ID
Thread
Re: styling refentry blocks
Thanks bob.

That all worked a treat. I went for the xsl:apply-imports approach. For those
that are interested, I finally used:

  <xsl:param name="shade.verbatim" select="1"></xsl:param>

  <xsl:attribute-set name="shade.verbatim.style">
    <xsl:attribute name="background-color">#E0E0E0</xsl:attribute>
    <xsl:attribute name="border-width">
      <xsl:choose>
        <xsl:when test="ancestor::refentry">0pt</xsl:when>
        <xsl:otherwise>0.5pt</xsl:otherwise>
      </xsl:choose>
    </xsl:attribute>
    <xsl:attribute name="border-style">
      <xsl:choose>
        <xsl:when test="ancestor::refentry">none</xsl:when>
        <xsl:otherwise>solid</xsl:otherwise>
      </xsl:choose>      
    </xsl:attribute>
    <xsl:attribute name="border-color">#575757</xsl:attribute>
    <xsl:attribute name="padding">3pt</xsl:attribute>
  </xsl:attribute-set>

to restyle the verbatim boxes within the refentry blocks only.

Paul
Next in thread → Next in month →