cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Owsianski" <va...@wirtualny.gorzow.pl>
Subject Re: AW: AW: Velocity and sitemap
Date Mon, 10 Sep 2001 14:43:02 GMT
Hi,

I've found explanation for velocity generation problem on my own...
'templates' directory seems to be hard-coded in VelocityGenerator
class.In A and B case velocity looking its templates in templates/templates
directory. straight and simple explanation :)

best
Daniel

>> 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: <cocoon-users-unsubscribe@xml.apache.org>
>> > For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>>
>> ---------------------------------------------------------------------
>> 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: <cocoon-users-unsubscribe@xml.apache.org>
>> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
>>
>> ---------------------------------------------------------------------
>> 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: <cocoon-users-unsubscribe@xml.apache.org>
>> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message