dleslie     01/03/01 12:41:51

  Added:       java/xdocs/style/stylesheets done.xsl
  Log:
  Stylesheet for generating DONE for inclusion in readme.xml.
  
  Revision  Changes    Path
  1.1                  xml-xalan/java/xdocs/style/stylesheets/done.xsl
  
  Index: done.xsl
  ===================================================================
  <?xml version="1.0" encoding="ISO-8859-1" ?>
  
  <!DOCTYPE xsl:stylesheet>
  
  <!-- XSL Style sheet, DTD omitted -->
  
  <xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
    <xsl:output method="xml"/>
    
    <xsl:template match="Commits">
    <xsl:comment>This XML fragment contains a list of source code updates to 
place in an &lt;s3&gt; section of readme.xml</xsl:comment>
      <xsl:if test="count([EMAIL PROTECTED]'core'])>0">
        <p>Core source code updates:</p>
        <ul>
        <xsl:for-each select="[EMAIL PROTECTED]'core']">
          <li><xsl:apply-templates 
select="Who|DateCommitted|Modified|Added|Removed|Log"/></li>
        </xsl:for-each>
        </ul>
      </xsl:if>
      <xsl:if test="count([EMAIL PROTECTED]'core'])=0">
        <note>This release includes no updates of the core source code.</note>
      </xsl:if>
      <xsl:if test="count([EMAIL PROTECTED]'compat'])>0">
        <p>Compatibility source code updates:</p>
        <ul>
        <xsl:for-each select="[EMAIL PROTECTED]'compat']">
          <li><xsl:apply-templates 
select="Who|DateCommitted|Modified|Added|Removed|Log"/></li>
        </xsl:for-each>
        </ul>
      </xsl:if>
      <xsl:if test="count([EMAIL PROTECTED]'compat'])=0">
        <note>This release includes no updates of the compatibility source 
code.</note>
      </xsl:if>
    </xsl:template>
    
    <xsl:template match="Who">
      <ref>Committed by </ref><xsl:value-of select="."/>
    </xsl:template>
    <xsl:template match="DateCommitted">
      <ref> on </ref><xsl:value-of select="."/><br/>
    </xsl:template>    
    <xsl:template match="Modified">    
      <ref>Modified: </ref><xsl:value-of select="."/><br/>
    </xsl:template>    
    <xsl:template match="Added">    
      <ref>Added: </ref><xsl:value-of select="."/><br/>
    </xsl:template>    
    <xsl:template match="Removed">    
      <ref>Removed: </ref><xsl:value-of select="."/><br/>
    </xsl:template>    
      <xsl:template match="Log">    
      <ref>Committer's log entry: </ref><xsl:value-of select="."/><br/><br/>
    </xsl:template>
    
  </xsl:stylesheet>
  
  

Reply via email to