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/08 03:45:00 UTC
Velocity and sitemap
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>
Re: Velocity and sitemap
Posted by Tobias Luikard <t....@exxcellent.de>.
Ups.
I forgot to mention that I use Cocoon2B2 and Tomcat 3.2.3 on a Win2000
PC.
Sorry
Tobias
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>
---------------------------------------------------------------------
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>
Re: AW: AW: Velocity and sitemap
Posted by Daniel Owsianski <va...@wirtualny.gorzow.pl>.
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: <co...@xml.apache.org>
>> > For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
>> For additional commands, e-mail: <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
AW: AW: Velocity and sitemap
Posted by Jörn Heid <he...@fh-heilbronn.de>.
"(It was a hard weekend .-) )"
Indeed - you lost an eye ;)
-----Ursprüngliche Nachricht-----
Von: Tobias Luikard [mailto:t.luikard@exxcellent.de]
Gesendet: Montag, 10. September 2001 10:17
An: cocoon-users@xml.apache.org
Betreff: Re: AW: Velocity and sitemap
I'm getting old. Thanks a lot.
Tobias
(It was a hard weekend .-) )
Jörn Heid wrote:
> Perhaps because of 'scr' instead of 'src' ;)
>
> -----Ursprüngliche Nachricht-----
> Von: Tobias Luikard [mailto:t.luikard@exxcellent.de]
> Gesendet: Montag, 10. September 2001 09:54
> An: cocoon-users@xml.apache.org
> Betreff: Re: Velocity and sitemap
>
> Hi out there,
>
> I got a similar problem like Daniel.
>
> I createt a example direktory called Connections. There a simple xls
> example Homer.html (-.xml and adress-html.xls) which works perfekt. But
> when I try to run the sales.html example a "Internal server error"
> occurres. The descripiton is: "org.apache.cocoon.ProcessingException:
> Stylesheet URI can't be null" but I specified one. The XSL tranformation
> works fine when I rename the files in Homer.xml and address-html.xsl (and
> call then Homer.html)
>
> Here the pipeline deffinitions from the sitemape.xmap in the Connections
> direcory:
>
> <map:pipelines>
> <map:pipeline>
> <map:match pattern="">
> <map:redirect-to uri="sales.html"/>
> </map:match>
> <map:match pattern="Homer.html">
> <map:generate src="Homer.xml"/>
> <map:transform src="address-html.xsl"/>
> <map:serialize/>
> </map:match>
> <map:match pattern="sales.html">
> <map:generate src="sales.xml"/>
> <map:transform scr="sales.xsl"/>
> <map:serialize/>
> </map:match>
> </map:pipeline>
> </map:pipelines>
>
> With this statement I included the sitemap from the Context-Root sitemap:
>
> <map:pipeline>
> <map:match pattern="Connections/**">
> <map:mount check-reload="yes" src="Connections/"
> uri-prefix="Connections"/>
> </map:match>
> </map:pipeline>
>
> Can anyone give me a hint why sales.html isn't working?
>
> Thanks a lot
>
> Tobias
>
> 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>
>
> ---------------------------------------------------------------------
> 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>
>
> ---------------------------------------------------------------------
> 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>
---------------------------------------------------------------------
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>
---------------------------------------------------------------------
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>
Re: AW: Velocity and sitemap
Posted by Tobias Luikard <t....@exxcellent.de>.
I'm getting old. Thanks a lot.
Tobias
(It was a hard weekend .-) )
Jörn Heid wrote:
> Perhaps because of 'scr' instead of 'src' ;)
>
> -----Ursprüngliche Nachricht-----
> Von: Tobias Luikard [mailto:t.luikard@exxcellent.de]
> Gesendet: Montag, 10. September 2001 09:54
> An: cocoon-users@xml.apache.org
> Betreff: Re: Velocity and sitemap
>
> Hi out there,
>
> I got a similar problem like Daniel.
>
> I createt a example direktory called Connections. There a simple xls
> example Homer.html (-.xml and adress-html.xls) which works perfekt. But
> when I try to run the sales.html example a "Internal server error"
> occurres. The descripiton is: "org.apache.cocoon.ProcessingException:
> Stylesheet URI can't be null" but I specified one. The XSL tranformation
> works fine when I rename the files in Homer.xml and address-html.xsl (and
> call then Homer.html)
>
> Here the pipeline deffinitions from the sitemape.xmap in the Connections
> direcory:
>
> <map:pipelines>
> <map:pipeline>
> <map:match pattern="">
> <map:redirect-to uri="sales.html"/>
> </map:match>
> <map:match pattern="Homer.html">
> <map:generate src="Homer.xml"/>
> <map:transform src="address-html.xsl"/>
> <map:serialize/>
> </map:match>
> <map:match pattern="sales.html">
> <map:generate src="sales.xml"/>
> <map:transform scr="sales.xsl"/>
> <map:serialize/>
> </map:match>
> </map:pipeline>
> </map:pipelines>
>
> With this statement I included the sitemap from the Context-Root sitemap:
>
> <map:pipeline>
> <map:match pattern="Connections/**">
> <map:mount check-reload="yes" src="Connections/"
> uri-prefix="Connections"/>
> </map:match>
> </map:pipeline>
>
> Can anyone give me a hint why sales.html isn't working?
>
> Thanks a lot
>
> Tobias
>
> 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>
>
> ---------------------------------------------------------------------
> 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>
>
> ---------------------------------------------------------------------
> 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>
---------------------------------------------------------------------
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>
AW: Velocity and sitemap
Posted by Jörn Heid <he...@fh-heilbronn.de>.
Perhaps because of 'scr' instead of 'src' ;)
-----Ursprüngliche Nachricht-----
Von: Tobias Luikard [mailto:t.luikard@exxcellent.de]
Gesendet: Montag, 10. September 2001 09:54
An: cocoon-users@xml.apache.org
Betreff: Re: Velocity and sitemap
Hi out there,
I got a similar problem like Daniel.
I createt a example direktory called Connections. There a simple xls
example Homer.html (-.xml and adress-html.xls) which works perfekt. But
when I try to run the sales.html example a "Internal server error"
occurres. The descripiton is: "org.apache.cocoon.ProcessingException:
Stylesheet URI can't be null" but I specified one. The XSL tranformation
works fine when I rename the files in Homer.xml and address-html.xsl (and
call then Homer.html)
Here the pipeline deffinitions from the sitemape.xmap in the Connections
direcory:
<map:pipelines>
<map:pipeline>
<map:match pattern="">
<map:redirect-to uri="sales.html"/>
</map:match>
<map:match pattern="Homer.html">
<map:generate src="Homer.xml"/>
<map:transform src="address-html.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="sales.html">
<map:generate src="sales.xml"/>
<map:transform scr="sales.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>
</map:pipelines>
With this statement I included the sitemap from the Context-Root sitemap:
<map:pipeline>
<map:match pattern="Connections/**">
<map:mount check-reload="yes" src="Connections/"
uri-prefix="Connections"/>
</map:match>
</map:pipeline>
Can anyone give me a hint why sales.html isn't working?
Thanks a lot
Tobias
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>
---------------------------------------------------------------------
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>
---------------------------------------------------------------------
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>
RE: Velocity and sitemap
Posted by Klaus Bertram <be...@n-bis.de>.
Hi Tobias,
use
<map:transform src="sales.xsl"/>
instead of
<map:transform scr="sales.xsl"/>
Klaus
> -----Original Message-----
> From: Tobias Luikard [mailto:t.luikard@exxcellent.de]
> Sent: Monday, September 10, 2001 9:54 AM
> To: cocoon-users@xml.apache.org
> Subject: Re: Velocity and sitemap
>
>
> Hi out there,
>
> I got a similar problem like Daniel.
>
> I createt a example direktory called Connections. There a simple xls
> example Homer.html (-.xml and adress-html.xls) which works perfekt. But
> when I try to run the sales.html example a "Internal server error"
> occurres. The descripiton is: "org.apache.cocoon.ProcessingException:
> Stylesheet URI can't be null" but I specified one. The XSL tranformation
> works fine when I rename the files in Homer.xml and address-html.xsl (and
> call then Homer.html)
>
> Here the pipeline deffinitions from the sitemape.xmap in the Connections
> direcory:
>
> <map:pipelines>
> <map:pipeline>
> <map:match pattern="">
> <map:redirect-to uri="sales.html"/>
> </map:match>
> <map:match pattern="Homer.html">
> <map:generate src="Homer.xml"/>
> <map:transform src="address-html.xsl"/>
> <map:serialize/>
> </map:match>
> <map:match pattern="sales.html">
> <map:generate src="sales.xml"/>
> <map:transform scr="sales.xsl"/>
> <map:serialize/>
> </map:match>
> </map:pipeline>
> </map:pipelines>
>
> With this statement I included the sitemap from the Context-Root sitemap:
>
> <map:pipeline>
> <map:match pattern="Connections/**">
> <map:mount check-reload="yes" src="Connections/"
> uri-prefix="Connections"/>
> </map:match>
> </map:pipeline>
>
> Can anyone give me a hint why sales.html isn't working?
>
> Thanks a lot
>
> Tobias
>
>
> 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>
>
>
> ---------------------------------------------------------------------
> 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>
---------------------------------------------------------------------
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>
Re: Velocity and sitemap
Posted by Tobias Luikard <t....@exxcellent.de>.
Hi out there,
I got a similar problem like Daniel.
I createt a example direktory called Connections. There a simple xls
example Homer.html (-.xml and adress-html.xls) which works perfekt. But
when I try to run the sales.html example a "Internal server error"
occurres. The descripiton is: "org.apache.cocoon.ProcessingException:
Stylesheet URI can't be null" but I specified one. The XSL tranformation
works fine when I rename the files in Homer.xml and address-html.xsl (and
call then Homer.html)
Here the pipeline deffinitions from the sitemape.xmap in the Connections
direcory:
<map:pipelines>
<map:pipeline>
<map:match pattern="">
<map:redirect-to uri="sales.html"/>
</map:match>
<map:match pattern="Homer.html">
<map:generate src="Homer.xml"/>
<map:transform src="address-html.xsl"/>
<map:serialize/>
</map:match>
<map:match pattern="sales.html">
<map:generate src="sales.xml"/>
<map:transform scr="sales.xsl"/>
<map:serialize/>
</map:match>
</map:pipeline>
</map:pipelines>
With this statement I included the sitemap from the Context-Root sitemap:
<map:pipeline>
<map:match pattern="Connections/**">
<map:mount check-reload="yes" src="Connections/"
uri-prefix="Connections"/>
</map:match>
</map:pipeline>
Can anyone give me a hint why sales.html isn't working?
Thanks a lot
Tobias
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>
---------------------------------------------------------------------
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>
Re[2]: Velocity and sitemap
Posted by Daniel Owsianski <va...@wirtualny.gorzow.pl>.
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>
Re: Velocity and sitemap
Posted by Michael McKibben <mm...@ncube.com>.
Hello, I believe also the Velocity Cocoon2 Generator currently configures
the Velocity engine to resolve template files relative to the templates/
directory inside the cocoon webapp, so your src path should not include
the "templates/" part.
Regards,
--mike
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>
>
---------------------------------------------------------------------
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>