Author: thorsten
Date: Mon Nov  7 10:55:48 2005
New Revision: 331574

URL: http://svn.apache.org/viewcvs?rev=331574&view=rev
Log:
The properties for a contract is the same even if it used more then once. The 
change makes sure that it really got only included once.

Modified:
    
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/prepare.properties.xsl

Modified: 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/prepare.properties.xsl
URL: 
http://svn.apache.org/viewcvs/forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/prepare.properties.xsl?rev=331574&r1=331573&r2=331574&view=diff
==============================================================================
--- 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/prepare.properties.xsl
 (original)
+++ 
forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/prepare.properties.xsl
 Mon Nov  7 10:55:48 2005
@@ -22,10 +22,11 @@
   xmlns:c="http://apache.org/cocoon/include/1.0"; >
 
        <xsl:param name="format"/>
+  <xsl:key name="contracts" match="forrest:contract" use="@name" />
 
   <xsl:template match="/">
     <forrest:properties >
-           <xsl:for-each select="forrest:[EMAIL PROTECTED]//forrest:contract">
+           <xsl:for-each select="forrest:[EMAIL 
PROTECTED]//forrest:contract[count(. | key('contracts', @name)[1]) = 1]">
         <c:include>
           <xsl:attribute name="src">
             <xsl:value-of 


Reply via email to