ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From adammurd...@apache.org
Subject cvs commit: jakarta-ant-myrmidon/tools/xsl taskdoc-summary.xsl taskdoc.xsl
Date Tue, 11 Jun 2002 11:56:37 GMT
adammurdoch    2002/06/11 04:56:37

  Modified:    tools/xsl taskdoc-summary.xsl taskdoc.xsl
  Log:
  - Include role's short description on overview page.
  - Generate separate page for each role.
  - Fixed escaping.
  
  Revision  Changes    Path
  1.2       +2 -1      jakarta-ant-myrmidon/tools/xsl/taskdoc-summary.xsl
  
  Index: taskdoc-summary.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/tools/xsl/taskdoc-summary.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- taskdoc-summary.xsl	1 Jun 2002 06:59:53 -0000	1.1
  +++ taskdoc-summary.xsl	11 Jun 2002 11:56:37 -0000	1.2
  @@ -16,6 +16,7 @@
                       <xsl:sort select="."/>
                       <xsl:variable name="rolename" select="."/>
                       <section name="{$rolename}" anchor="{$rolename}">
  +                        <p><escaped><xsl:value-of select="/types/role[@name
= $rolename]/short-description"/></escaped></p>
                           <table>
                               <tr><th>Name</th><th>Description</th></tr>
                               <xsl:for-each select="/types/type[@role = $rolename]">
  @@ -26,7 +27,7 @@
                                               <xsl:value-of select="@name"/>
                                           </a>
                                       </td>
  -                                    <td><xsl:value-of select="short-description"/></td>
  +                                    <td><escaped><xsl:value-of select="short-description"/></escaped></td>
                                   </tr>
                               </xsl:for-each>
                           </table>
  
  
  
  1.2       +32 -14    jakarta-ant-myrmidon/tools/xsl/taskdoc.xsl
  
  Index: taskdoc.xsl
  ===================================================================
  RCS file: /home/cvs/jakarta-ant-myrmidon/tools/xsl/taskdoc.xsl,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- taskdoc.xsl	1 Jun 2002 06:59:53 -0000	1.1
  +++ taskdoc.xsl	11 Jun 2002 11:56:37 -0000	1.2
  @@ -4,6 +4,7 @@
       <xsl:output indent="yes" omit-xml-declaration="yes"/>
   
       <xsl:template match="/type">
  +        <!-- A type -->
           <xsl:variable name="typename">
               <xsl:value-of select="names/name[1]/@name"/>
           </xsl:variable>
  @@ -12,18 +13,27 @@
               <properties>
                   <title><xsl:value-of select="$typename"/></title>
               </properties>
  -
  -        <body>
  -
  -        <section name="{$typename}">
  -            <p><xsl:apply-templates select="long-description"/></p>
  -
  -            <xsl:apply-templates select="structure"/>
  -        </section>
  -
  -        </body>
  +            <body>
  +                <section name="{$typename}">
  +                    <p><escaped><xsl:value-of select="long-description"/></escaped></p>
  +                    <xsl:apply-templates select="structure"/>
  +                </section>
  +            </body>
           </document>
  +    </xsl:template>
   
  +    <xsl:template match="/role">
  +        <!-- A role -->
  +        <document>
  +            <properties>
  +                <title><xsl:value-of select="@name"/></title>
  +            </properties>
  +            <body>
  +                <section name="@name">
  +                    <p><escaped><xsl:value-of select="long-description"/></escaped></p>
  +                </section>
  +            </body>
  +        </document>
       </xsl:template>
   
       <xsl:template match="structure">
  @@ -67,7 +77,7 @@
               <xsl:for-each select="attribute">
                   <tr>
                       <td><xsl:value-of select="@name"/></td>
  -                    <td><xsl:value-of select="description"/></td>
  +                    <td><escaped><xsl:value-of select="description"/></escaped></td>
                       <td><code><xsl:value-of select="@type"/></code></td>
                   </tr>
               </xsl:for-each>
  @@ -80,7 +90,7 @@
               <xsl:for-each select="element">
                   <tr>
                       <td><xsl:value-of select="@name"/></td>
  -                    <td><xsl:value-of select="description"/></td>
  +                    <td><escaped><xsl:value-of select="description"/></escaped></td>
                       <td><code><xsl:value-of select="@type"/></code></td>
                   </tr>
               </xsl:for-each>
  @@ -88,8 +98,16 @@
       </xsl:template>
   
       <xsl:template match="body">
  -        <p>Type: <xsl:value-of select="@type"/></p>
  -        <p><xsl:value-of select="description"/>.</p>
  +        <table>
  +            <tr>
  +                <th>Type</th>
  +                <td><xsl:value-of select="@type"/></td>
  +            </tr>
  +            <tr>
  +                <th>Description</th>
  +                <td><escaped><xsl:value-of select="description"/></escaped></td>
  +            </tr>
  +        </table>
       </xsl:template>
   
   </xsl:stylesheet>
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message