Subversion Repositories svn LFS-FR


Blame | Last modification | View Log | RSS feed

<?xml version='1.0' encoding='ISO-8859-1'?>


<xsl:stylesheet xmlns:xsl=""

  <!-- This stylesheet controls how admonitions are displayed -->

    <!-- Use graphics in admonitions? 1 = yes, 0 = no -->
  <xsl:param name="" select="1"/>

    <!-- Relative path to images directory. We set here relative path
   from sub-dirs HTML files. The path from top-level HTML files (index.html,
   partX.html, etc) MUST be fixed via a sed in the Makefile. -->
  <xsl:param name="">../images/</xsl:param>

    <!-- The images files extension -->
  <xsl:param name="" select="'.png'"/>

    <!-- Changing the output tagging:
          Removed $ support
          Hardcoded $admon.textlabel feature
          Changed the output format from table to nested divs -->
    <!-- The original template is in {docbook-xsl}/xhtml/admon.xsl -->
  <xsl:template name="graphical.admonition">
    <xsl:variable name="admon.type">
        <xsl:when test="local-name(.)='note'">Note</xsl:when>
        <xsl:when test="local-name(.)='warning'">Warning</xsl:when>
        <xsl:when test="local-name(.)='caution'">Caution</xsl:when>
        <xsl:when test="local-name(.)='tip'">Tip</xsl:when>
        <xsl:when test="local-name(.)='important'">Important</xsl:when>
    <xsl:variable name="alt">
      <xsl:call-template name="gentext">
        <xsl:with-param name="key" select="$admon.type"/>
    <div class="admon {name(.)}">
      <img alt="[{$alt}]">
        <xsl:attribute name="src">
          <xsl:call-template name="admon.graphic"/>
        <xsl:apply-templates select="." mode="object.title.markup"/>