jmartin     01/02/10 04:14:36

  Modified:    src/xsl  migrate0.2.xml
  Log:
  Changes to make sure the repository type and opensource flag are copied through 
correctly
  
  Revision  Changes    Path
  1.3       +17 -1     jakarta-alexandria/src/xsl/migrate0.2.xml
  
  Index: migrate0.2.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-alexandria/src/xsl/migrate0.2.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- migrate0.2.xml    2001/02/06 23:54:25     1.2
  +++ migrate0.2.xml    2001/02/10 12:14:36     1.3
  @@ -21,7 +21,15 @@
           <redirect:write select="concat('repositories/',name,'.xml')">
             <xsl:copy>
               <xsl:attribute name="name"><xsl:value-of select="name"/></xsl:attribute>
  -            <xsl:attribute name="type">cvs</xsl:attribute>
  +            <xsl:choose>
  +              <xsl:when test="@type='LOCAL'">
  +                <xsl:attribute name="type">local</xsl:attribute>
  +              </xsl:when>
  +              <xsl:otherwise>
  +                <xsl:attribute name="type">cvs</xsl:attribute>
  +              </xsl:otherwise>
  +            </xsl:choose>
  +
               <title><xsl:value-of select="name"/></title>
               <xsl:copy-of select="@*"/>
               <xsl:copy-of select="*[not(self::module)][not(self::name)]"/>
  @@ -37,6 +45,14 @@
           <redirect:write select="concat('projects/',../name,'.xml')">
             <project>
               <xsl:attribute name="repository"><xsl:value-of 
select="../../name"/></xsl:attribute>
  +            <xsl:choose>
  +              <xsl:when test="../../opensource">
  +                <xsl:attribute name="opensource"><xsl:value-of 
select="../../opensource"/></xsl:attribute>
  +              </xsl:when>
  +              <xsl:otherwise>
  +                <xsl:attribute name="opensource">true</xsl:attribute>
  +              </xsl:otherwise>
  +            </xsl:choose>
               <title><xsl:value-of select="../name"/></title>
               <module><xsl:value-of select="../cvs-module-name"/></module>
               <xsl:copy-of 
select="../@*|../*[not(self::name)][not(self::cvs-module-name)][not(self::revision)]"/>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to