You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@forrest.apache.org by Cyriaque Dupoirieux <Cy...@pcotech.fr> on 2006/02/22 12:33:14 UTC
[Forrest bar] structurer problems
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 ?
Cyriaque,
Re: [Forrest bar] structurer problems
Posted by Thorsten Scherler <th...@apache.org>.
El mié, 22-02-2006 a las 14:34 +0100, Cyriaque Dupoirieux escribió:
...
> > I just understood what you suggest (at least I think now), you want to
> > add:
> >
> >> <!-- 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>
> >>>
> >
> > again to the internal.xmap.
> >
> > +1
> >
> Yes that's it !
> Now I have two problems :
>
> * Is there still a format in our contracts or do I remove the
> <map:parameter name="format" value="{1}" /> ?
>
Yes, remove it and change in the xsl
<xsl:copy-of select="forrest:contract/forrest:template/xsl:stylesheet"/>
> * I don't know much about lm use,
>
> o I add the pipeline to internal.xmap and the following lines :
> * <!-- Extracts the style sheet from the contract. -->
> <match pattern="contract-strip-xsl.xsl">
> <select type="exists">
> <!-- don't think it's wise to let project override this... -->
> <!-- location
> src="{project:structurer}/resources/stylesheets/helper/contract-strip-xsl.xsl"
> /-->
> <location
> src="{defaults:structurer}/resources/stylesheets/helper/contract-strip-xsl.xsl"
> />
> </select>
> </match>
> o at the end of the location map.
> o And I copied the contract-strip-xsl.xsl in the
> dispatcher/resources/stylesheets/helper directory.
> * But it does not work !
>
> Can you help ?
Hmm, sounds good like you.
Did you build the dispatcher afterwards?
Did you restart your project (to clear the lm cache)?
What is the error?
salu2
--
thorsten
"Together we stand, divided we fall!"
Hey you (Pink Floyd)
Re: [Forrest bar] structurer problems
Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
Thorsten Scherler a écrit :
> El mié, 22-02-2006 a las 13:31 +0100, Thorsten Scherler escribió:
>
>> El mié, 22-02-2006 a las 13:21 +0100, Cyriaque Dupoirieux escribió:
>>
>>> 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 ?
>>>
>>>
>> Jeje, the xsl-magic is gone with standalone contracts. ;-) We do not
>> generate an aggregated xsl anymore.
>>
>> We resolve the structurer, then the dispatcher invokes the standalone
>> transformation of the contracts. See page 17 of
>> http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/events/malaga_2006/forrest-dispatcher-1.5h_en.pdf
>>
>> but:
>>
>>> Ok, I think I have found, it's
>>>
>>>> * cocoon://resolve.contract.html.content-main for a contract or
>>>> * cocoon://resolve.structurer.html.<yourPage>
>>>>
>> sounds sweet.
>>
>
>
> I just understood what you suggest (at least I think now), you want to
> add:
>
>> <!-- 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>
>>>
>
> again to the internal.xmap.
>
> +1
>
Yes that's it !
Now I have two problems :
* Is there still a format in our contracts or do I remove the
<map:parameter name="format" value="{1}" /> ?
* I don't know much about lm use,
o I add the pipeline to internal.xmap and the following lines :
* <!-- Extracts the style sheet from the contract. -->
<match pattern="contract-strip-xsl.xsl">
<select type="exists">
<!-- don't think it's wise to let project override this... -->
<!-- location
src="{project:structurer}/resources/stylesheets/helper/contract-strip-xsl.xsl"
/-->
<location
src="{defaults:structurer}/resources/stylesheets/helper/contract-strip-xsl.xsl"
/>
</select>
</match>
o at the end of the location map.
o And I copied the contract-strip-xsl.xsl in the
dispatcher/resources/stylesheets/helper directory.
* But it does not work !
Can you help ?
Cyriaque,
> salu2
>
Re: [Forrest bar] structurer problems
Posted by Thorsten Scherler <th...@wyona.com>.
El mié, 22-02-2006 a las 13:31 +0100, Thorsten Scherler escribió:
> El mié, 22-02-2006 a las 13:21 +0100, Cyriaque Dupoirieux escribió:
> > 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 ?
> >
>
> Jeje, the xsl-magic is gone with standalone contracts. ;-) We do not
> generate an aggregated xsl anymore.
>
> We resolve the structurer, then the dispatcher invokes the standalone
> transformation of the contracts. See page 17 of
> http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/events/malaga_2006/forrest-dispatcher-1.5h_en.pdf
>
> but:
> > Ok, I think I have found, it's
> > > * cocoon://resolve.contract.html.content-main for a contract or
> > > * cocoon://resolve.structurer.html.<yourPage>
>
> sounds sweet.
I just understood what you suggest (at least I think now), you want to
add:
> <!-- 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>
again to the internal.xmap.
+1
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
thorsten.scherler@wyona.com thorsten@apache.org
Re: [Forrest bar] structurer problems
Posted by Thorsten Scherler <th...@wyona.com>.
El mié, 22-02-2006 a las 13:21 +0100, Cyriaque Dupoirieux escribió:
> 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 ?
>
Jeje, the xsl-magic is gone with standalone contracts. ;-) We do not
generate an aggregated xsl anymore.
We resolve the structurer, then the dispatcher invokes the standalone
transformation of the contracts. See page 17 of
http://svn.apache.org/viewcvs.cgi/*checkout*/forrest/events/malaga_2006/forrest-dispatcher-1.5h_en.pdf
but:
> Ok, I think I have found, it's
> > * cocoon://resolve.contract.html.content-main for a contract or
> > * cocoon://resolve.structurer.html.<yourPage>
sounds sweet.
salu2
--
Thorsten Scherler
COO Spain
Wyona Inc. - Open Source Content Management - Apache Lenya
http://www.wyona.com http://lenya.apache.org
thorsten.scherler@wyona.com thorsten@apache.org
Re: [Forrest bar] structurer problems
Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
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,
>>
>>
>
>
Re: [Forrest bar] structurer problems
Posted by Cyriaque Dupoirieux <Cy...@pcotech.fr>.
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 ?
>
> Cyriaque,
>
>