You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Daniel Owsianski <va...@wirtualny.gorzow.pl> on 2001/09/10 18:43:27 UTC
Re[2]: Velocity and sitemap
Hi Michael,
Monday, September 10, 2001, 5:45:48 PM, napisano co następuje:
M> Hello, I believe also the Velocity Cocoon2 Generator currently configures
M> the Velocity engine to resolve template files relative to the templates/
M> directory inside the cocoon webapp, so your src path should not include
M> the "templates/" part.
Yes indeed I've found this in VelocityGenerator source
thx anyway
Daniel
M> On Sat, 8 Sep 2001, Daniel Owsianski wrote:
>> Hi,
>>
>> I use Cocoon2b2 and Tomcat 3.2.3 with Apache.
>> sitemap has the following entries:
>>
>> <!-- A -->
>> <map:match pattern="hello-page.vm">
>> <map:generate type="velocity" src="templates/hello-page.vm"/>
>> <map:transform src="stylesheets/simple-page2html.xsl"/>
>> <map:serialize type="html"/>
>> </map:match>
>>
>> <!-- B -->
>> <map:match pattern="hello-page">
>> <map:generate type="velocity" src="templates/hello-page.vm"/>
>> <map:transform src="stylesheets/simple-page2html.xsl"/>
>> <map:serialize type="html"/>
>> </map:match>
>>
>> <!-- C -->
>> <map:match pattern="templates/*">
>> <map:generate type="velocity" src="{1}"/>
>> <map:transform src="stylesheets/simple-page2html.xsl"/>
>> <map:serialize type="html"/>
>> </map:match>
>>
>> Why only 'C' works fine ??
>> Both 'A' and 'B' generates processing exception (unable to find
>> 'templates/hello-page.vm') in VelocityGenerator.
>> Please, a bit of help and explanation.
>> Thx in advance...
>> Daniel
>>
>>
>> ---------------------------------------------------------------------
>> Please check that your question has not already been answered in the
>> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>>
>> To unsubscribe, e-mail: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@xml.apache.org>
>>
M> ---------------------------------------------------------------------
M> Please check that your question has not already been answered in the
M> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
M> To unsubscribe, e-mail: <co...@xml.apache.org>
M> For additional commands, e-mail: <co...@xml.apache.org>
Pozdrawiam
Daniel/IRIS
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>