dims        01/07/19 03:53:37

  Modified:    webapp/stylesheets/documents Tag: cocoon_20_branch
                        root2html.xsl
  Log:
  Patch from Stuart Roebuck for Improvement of documentation source display
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +13 -6     xml-cocoon2/webapp/stylesheets/documents/root2html.xsl
  
  Index: root2html.xsl
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/webapp/stylesheets/documents/root2html.xsl,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- root2html.xsl     2001/07/17 21:14:33     1.1.2.3
  +++ root2html.xsl     2001/07/19 10:53:37     1.1.2.4
  @@ -28,7 +28,7 @@
   </xsl:template>
   
   <xsl:template match="/root/sidebar">
  -  <table>
  +  <table valign="top">
       <xsl:apply-templates/>
     </table>
   </xsl:template>
  @@ -59,24 +59,30 @@
     <xsl:apply-templates/>
   </xsl:template>
   
  -<xsl:template match="body//s1" priority="2">
  +<xsl:template match="body//s1">
     <h1><xsl:value-of select="@title"/></h1>
     <xsl:apply-templates/>
   </xsl:template>
   
  -<xsl:template match="body//s2" priority="2">
  +<xsl:template match="body//s2">
     <h2><xsl:value-of select="@title"/></h2>
     <xsl:apply-templates/>
   </xsl:template>
   
  -<xsl:template match="body//link" priority="2">
  +<xsl:template match="body//link">
     <a>
       <xsl:copy-of select="@href"/>
       <xsl:apply-templates/>
     </a>
   </xsl:template>
   
  -<xsl:template match="body//node()|body//@*">
  +<xsl:template match="source">
  +    <listing style="color: green; font-size: 80%;">
  +        <xsl:apply-templates />
  +    </listing>
  +</xsl:template>
  +
  +<xsl:template match="body//node()|body//@*" priority="-1">
     <xsl:copy>
       <xsl:apply-templates select="@*|node()"/>
     </xsl:copy>
  @@ -90,6 +96,7 @@
             </xsl:attribute>
           </xsl:for-each>
      </xsl:element>
  -</xsl:template>  
  +</xsl:template>
  +
   
   </xsl:stylesheet>
  
  
  

----------------------------------------------------------------------
In case of troubles, e-mail:     [EMAIL PROTECTED]
To unsubscribe, e-mail:          [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to