You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by ru...@apache.org on 2001/04/23 15:26:22 UTC
cvs commit: jakarta-alexandria/proposal/gump/stylesheet sortdep.xsl
rubys 01/04/23 06:26:22
Modified: proposal/gump rubix.xml
proposal/gump/project xml-cocoon2.xml
proposal/gump/stylesheet sortdep.xsl
Log:
Make optional dependencies truly optional
Revision Changes Path
1.36 +1 -5 jakarta-alexandria/proposal/gump/rubix.xml
Index: rubix.xml
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/rubix.xml,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -r1.35 -r1.36
--- rubix.xml 2001/04/23 13:10:13 1.35
+++ rubix.xml 2001/04/23 13:26:18 1.36
@@ -5,11 +5,7 @@
<profile href="profile/gump.xml"/>
- <!-- Additional dependencies -->
-
- <project name="xml-cocoon2">
- <option project="phpservlet"/>
- </project>
+ <!-- Additional projects -->
<project name="phpservlet" home="/home/rubys/php">
<jar name="lib/php/phpsrvlt.jar"/>
1.11 +1 -0 jakarta-alexandria/proposal/gump/project/xml-cocoon2.xml
Index: xml-cocoon2.xml
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/project/xml-cocoon2.xml,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- xml-cocoon2.xml 2001/04/16 17:52:46 1.10
+++ xml-cocoon2.xml 2001/04/23 13:26:20 1.11
@@ -32,6 +32,7 @@
<depend project="bsf"/>
<depend project="jakarta-velocity"/>
<option project="jtidy"/>
+ <option project="phpservlt"/>
<project name="jstyle">
<url href="http://astyle.sourceforge.net/"/>
1.2 +13 -1 jakarta-alexandria/proposal/gump/stylesheet/sortdep.xsl
Index: sortdep.xsl
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/gump/stylesheet/sortdep.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sortdep.xsl 2001/02/04 18:03:54 1.1
+++ sortdep.xsl 2001/04/23 13:26:21 1.2
@@ -16,7 +16,19 @@
<xsl:copy-of select="*[not(self::project)]"/>
<xsl:text> </xsl:text>
<xsl:call-template name="sort-dependencies">
- <xsl:with-param name="done" select="':'"/>
+
+ <!-- treat unresolved options as done -->
+ <xsl:with-param name="done">
+ <xsl:text>:</xsl:text>
+ <xsl:for-each select= "//project/option">
+ <xsl:sort select="@project"/>
+ <xsl:variable name="project" select="@project"/>
+ <xsl:if test="not(preceding::option[@project=$project])">
+ <xsl:value-of select="concat(@project,':')"/>
+ </xsl:if>
+ </xsl:for-each>
+ </xsl:with-param>
+
</xsl:call-template>
</xsl:copy>
</xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: alexandria-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: alexandria-dev-help@jakarta.apache.org