jmartin 01/02/14 05:08:50
Modified: src/xsl right.xsl
Log:
Fixed lookup of repository data
Revision Changes Path
1.5 +6 -7 jakarta-alexandria/src/xsl/right.xsl
Index: right.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/src/xsl/right.xsl,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- right.xsl 2001/02/04 23:54:35 1.4
+++ right.xsl 2001/02/14 13:08:49 1.5
@@ -29,21 +29,20 @@
<xsl:template match="project">
- <xsl:variable name="type" select="@type"/>
- <xsl:variable name="module" select="module"/>
+ <xsl:variable name="repository"
select="/workspace/repository[@name=current()/@repository]"/>
- <a name="{$module}"></a>
+ <a name="{module}"></a>
<li>
<p>
<a href="{home}"><xsl:value-of select="title"/></a>: <xsl:value-of
select="description"/>
</p>
- <xsl:if test="$type='cvs'">
+ <xsl:if test="$repository[@type='cvs']">
<p>
To obtain source: <br/><br/>
- cvs -d <xsl:value-of select="../root"/> login <br/>
- password: <b><xsl:value-of select="../password"/></b><br/>
+ cvs -d <xsl:value-of select="$repository/root"/> login <br/>
+ password: <b><xsl:value-of select="$repository/password"/></b><br/>
<br/>
- cvs -d <xsl:value-of select="../root"/> checkout <xsl:value-of
select="$module"/> <br/>
+ cvs -d <xsl:value-of select="$repository/root"/> checkout <xsl:value-of
select="module"/> <br/>
</p>
</xsl:if>
</li>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]