forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <Cyriaque.Dupoiri...@pcotech.fr>
Subject Re: svn commit: r331574 - /forrest/trunk/whiteboard/plugins/org.apache.forrest.plugin.internal.structurer/resources/stylesheets/prepare.properties.xsl
Date Tue, 08 Nov 2005 08:27:35 GMT
thorsten@apache.org a écrit :

>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.
>  
>
Ouch ? And so ? What is the selected value for this redundant property ?
(BTW, I hope that it is still pôssible to call twice a contract with 
different parameters.)

Cyriaque,

>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:view[@type=$format]//forrest:contract">
>+	    <xsl:for-each select="forrest:view[@type=$format]//forrest:contract[count(. |
key('contracts', @name)[1]) = 1]">
>         <c:include>
>           <xsl:attribute name="src">
>             <xsl:value-of 
>
>
>
>  
>

Mime
View raw message