<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xd="http:www.pnp-software.com/XSLTdoc" xmlns:ax="http://control.ee.ethz.ch/XWeaver/AspectX" version="2.0">
      
<xd:doc type="stylesheet">
          This template generates the HTML page that documents one aspect program group. The
          name of the group is passed as the "groupName" template parameter.
          The "databaseFileName" parameter holds the name of the database file.
          The "configDoc" parameter holds the top-level element of the AspectXdoc configuration 
          file.
          
          This template calls the template "GenerateBanner". This template is not included
          here because it is assumed that it is already included by the calling template.
          
<xd:author>A. Pasetti, I. Birrer</xd:author>
          
<xd:cvsId>$Id: GenerateGroupPage.xsl 2 2005-01-19 16:09:12Z ibirrer $</xd:cvsId>
          
<xd:copyright>2004, P&amp;P Software GmbH</xd:copyright>
      
</xd:doc>
      
<xsl:template name="GenerateGroupPage">
         
<xsl:param name="groupName" />
         
<xsl:param name="Database" />
         
<xsl:param name="configDoc" />

         
<!-- Define a variable holding a white space -->
         
<xsl:variable name="whiteSpace" select="' '" />

         
<!-- Recover the element in the configuration document holding the group definition -->
         
<xsl:variable name="Group" select="$configDoc/Group[@name=$groupName]" />
             
<html>
                
<head>
                  
<title><xsl:value-of select="$configDoc/Header" /></title>
                  
<link href="AspectXdoc.css" rel="stylesheet" type="text/css" />
                
</head>
                
<body>
                
<xsl:call-template name="GenerateBanner"><xsl:with-param name="index" select="'0'" /></xsl:call-template>
                  
<h1><xsl:value-of select="$groupName" /> Group<br /></h1>
            
                  
<!-- Generate the description section at the beginning of the documentation page -->
                  
<hr /><a name="_description" /><h2>Group Description</h2>

                  
<p><xsl:apply-templates select="$Group" /></p>
                    
                  
<!-- Generate the section listing the aspects in the group -->
                  
<table border="0" cellpadding="0" cellspacing="0" width="100%">
                  
<tr><td /></tr>
                  
<tr><td colspan="2"><br><h2>Aspects</h2></br></td></tr>
                  
<xsl:for-each select="$Database/Entry[(@type='aspect') and (@group=$groupName)]">
                        
<tr><td class="memItemLeft" nowrap="nowrap" align="right" valign="top"><xsl:value-of select="substring-after(@type,':')" /></td>
                        
<td class="memItemRight" valign="bottom"><a class="el"><xsl:attribute name="href">Aspect_<xsl:value-of select="@name" />.html</xsl:attribute><xsl:value-of select="@name" /></a></td></tr>
                        
<tr><td class="mdescLeft"><xsl:value-of select="$whiteSpace" /></td><td class="mdescRight"><em><xsl:value-of select="@desc" /></em><br /></td></tr>
                  
</xsl:for-each>
                  
</table>
                  
               
<!-- Generate the footer at the bottom of the page -->
                
<hr /><center><b><xsl:apply-templates select="$configDoc/Footer" /></b></center>
                
</body>
             
</html>
      
      
</xsl:template>
      
      
     
</xsl:stylesheet>






































v