forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thorsten Scherler <thors...@apache.org>
Subject Re: [Forrest bar] structurer problems
Date Wed, 22 Feb 2006 15:09:34 GMT
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)


Mime
View raw message