forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
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 09:40:46 GMT
El mar, 08-11-2005 a las 09:27 +0100, Cyriaque Dupoirieux escribió:
> 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 ?

We are talking here about the prepare.properties.xsl. The result is:
http://localhost:8888/prepare.structurer-properties.html.index
<forrest:properties>
  <forrest:property name="branding-theme-profiler" head="true"
body="false" format="html"/>
...

> (BTW, I hope that it is still pôssible to call twice a contract with 
> different parameters.)

Yes, see above, that is only the general properties of the contract,
where it can insert content. Has nothing to do with the properties of
the view.

salu2

> 
> 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 
> >
> >
> >
> >  
> >
-- 
thorsten

"Together we stand, divided we fall!" 
Hey you (Pink Floyd)


Mime
View raw message