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: [Forrest bar] structurer problems
Date Wed, 22 Feb 2006 12:21:40 GMT
Cyriaque Dupoirieux a écrit :
> Cyriaque Dupoirieux a écrit :
>> Hi,
>>
>>    The link to structurer and structurer-xsl do not work anymore with 
>> the dispatcher.
>>    The url was something like :
>>
>>    * cocoon://prepare.contract.html.content-main for a contract or
>>    * cocoon://prepare.structurer.html.<yourPage>
>>
>> What is the new url to use ?
> Ok, I think I have found, it's
>   * cocoon://resolve.contract.html.content-main for a contract or
>   * cocoon://resolve.structurer.html.<yourPage>
>
> Is that good ?
No it is not !
The previous version (the structurer and not the dispatcher) has the 
following pipe :
    <!-- prepare the xsl:templates of the requested contract.
      {1} format to deliver
      {2} contract name  -->
    <map:pipeline>
      <map:match pattern="prepare.contract.*.**">
        <map:generate src="{lm:resolve.contract.{1}.{2}}" />
        <map:transform src="{lm:contract-strip-xsl.xsl}">
          <map:parameter name="format" value="{1}" />
        </map:transform>
        <map:transform type="i18n">
          <map:parameter name="locale" value="{request:locale}" />
        </map:transform>
        <map:serialize />
      </map:match>
    </map:pipeline>

Which returned the stylesheet corresponding to the contract.
It used this fonctionality to import contracts :
      <xsl:include href="cocoon://prepare.contract.html.content-main"/>

I think it was nice to be able to do this,

WDYT ?

Cyriaque,
>
>
>>
>> Cyriaque,
>>
>>
>
>

Mime
View raw message