Home | History | Annotate | Download | only in xsl
      1 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      2  version="1.0">
      3 
      4 <xsl:param name="use.id.as.filename" select="1"/>
      5 <xsl:param name="section.autolabel" select="1"/>
      6 <xsl:param name="chapter.autolabel" select="1"/>
      7 <xsl:param name="ulink.target" select="''"/>
      8  
      9 <xsl:param name="version"/>
     10 <xsl:template match="oprofileversion">
     11   <xsl:value-of select="$version"/>
     12 </xsl:template>
     13 
     14 <!-- Custom template for programlisting, screen and synopsis to generate a gray
     15      background to the item. -->
     16 <xsl:template match="programlisting|screen|synopsis">
     17   <xsl:param name="suppress-numbers" select="'0'"/>
     18   <xsl:variable name="vendor" select="system-property('xsl:vendor')"/>
     19   <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
     20  
     21   <xsl:if test="@id">
     22     <a href="{$id}"/>
     23   </xsl:if>
     24  
     25   <xsl:choose>
     26     <xsl:when test="$suppress-numbers = '0'
     27                     and @linenumbering = 'numbered'
     28                     and $use.extensions != '0'
     29                     and $linenumbering.extension != '0'">
     30       <xsl:variable name="rtf">
     31         <xsl:apply-templates/>
     32       </xsl:variable>
     33       <!-- Change the color background color in the line below. -->
     34       <table border="0" style="background: #E0E0E0;" width="90%">
     35       <tr><td>
     36       <pre class="{name(.)}">
     37         <xsl:call-template name="number.rtf.lines">
     38           <xsl:with-param name="rtf" select="$rtf"/>
     39         </xsl:call-template>
     40       </pre>
     41       </td></tr></table>
     42     </xsl:when>
     43     <xsl:otherwise>
     44       <!-- Change the color background color in the line below. -->
     45       <table border="0" style="background: #E0E0E0;" width="90%">
     46       <tr><td>
     47       <pre class="{name(.)}">
     48         <xsl:apply-templates/>
     49       </pre>
     50       </td></tr></table>
     51     </xsl:otherwise>
     52   </xsl:choose>
     53 </xsl:template> 
     54  
     55 </xsl:stylesheet>
     56