You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by gl...@apache.org on 2001/07/06 04:19:50 UTC

cvs commit: jakarta-taglibs/src/taglib changes-doc.xsl

glenn       01/07/05 19:19:50

  Modified:    src/taglib changes-doc.xsl
  Log:
  Fix generation of change history revisions
  
  Revision  Changes    Path
  1.2       +18 -12    jakarta-taglibs/src/taglib/changes-doc.xsl
  
  Index: changes-doc.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/src/taglib/changes-doc.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- changes-doc.xsl	2001/06/30 13:42:07	1.1
  +++ changes-doc.xsl	2001/07/06 02:19:49	1.2
  @@ -38,7 +38,20 @@
         Depends on the context, as you can see below.
    -->
   
  -<xsl:template match="/document/properties">
  +<xsl:template match="/document">
  +  <xsl:apply-templates select="properties"/>
  +  <body bgcolor="white">
  +    <center>
  +      <h1> 
  +        Jakarta Project: <xsl:value-of select="/document/taglib/display-name"/>
  +        Revision History
  +      </h1>
  +    </center>   
  +    <xsl:apply-templates select="revision"/>
  +  </body>
  +</xsl:template>
  +
  +<xsl:template match="properties">
     <head>
       <meta content="{author}" name="author"/>
       <xsl:choose>
  @@ -52,17 +65,10 @@
     </head>
   </xsl:template>
     
  -<xsl:template match="/document/revision">
  -  <body bgcolor="white">
  -    <center>
  -      <h1>
  -        Jakarta Project: <xsl:value-of select="/document/taglib/display-name"/> Revision History
  -      </h1>                                                                    
  -    </center>
  -    <h3><xsl:value-of select="@date"/> - <xsl:value-of select="@release"/></h3>
  -    <p><xsl:value-of select="description"/></p>
  -    <xsl:apply-templates select="section"/>
  -  </body>
  +<xsl:template match="revision">
  +  <h3><xsl:value-of select="@date"/> - <xsl:value-of select="@release"/></h3>
  +  <p><xsl:value-of select="description"/></p>
  +  <xsl:apply-templates select="section"/>
   </xsl:template>
   
   <xsl:template match="section">