You must run the XSP file (which should rather be called greeting.xsp)
through the XSP generator:

        <map:generate type="serverpages" src="greeting.xsp"/>

HTH, Alfred.

-----Original Message-----
From: n. [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 17. Mai 2005 14:44
To: [email protected]
Subject: Re: running xsp from cocoon


anyone??

On 5/17/05, n. <[EMAIL PROTECTED]> wrote:
> I am trying to run the following sample from the cocoon tutorial but
> it doesnt seem to be working:
> 
> greeting.xml
> <?xml version="1.0"?>
> 
> <xsp:page xmlns:xsp="http://apache.org/xsp";>
> 
>         <xsp:logic>
>                 //this could be arbitrarily complex Java code, JDBC
> queries, etc.
>                 String msg = "Hello, World!";
>         </xsp:logic>
> 
>         <greeting>
>                 <xsp:expr>msg</xsp:expr>
>         </greeting>
> 
> </xsp:page>
> 
> greeting.xsl
> <?xml version="1.0"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
> version="1.0">
> 
> <xsl:template match="/">
>         <html>
>                 <body>
>         hi
>                         <h1>
>                                 <xsl:value-of select="greeting"/>
>                         </h1>
>                 </body>
>         </html>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> I am using cocoon 2.1.7 on tomcat 5.8 as a servlet. I created my own
> sample directory in the "samples" directory. My sitemap.xmap file
> looks like this:
> sitemap.xmap:
> <?xml version="1.0"?>
> 
> <!-- CVS $Id: sitemap.xmap 30938 2004-07-29 19:08:16Z vgritsenko $ -->
> 
> <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0";>
> 
>   <map:pipelines>
> 
>     <map:pipeline>
> 
>       <map:match pattern="greeting">
>        <map:generate src="greeting.xml"/>
>        <map:transform src="greeting.xsl"/>
>       <map:serialize/>
>       </map:match>
> 
>       <map:match pattern="request.xml">
>        <map:generate src="request.xml"/>
>       <map:serialize/>
>       </map:match>
> 
>      </map:pipeline>
> 
>   </map:pipelines>
> 
> </map:sitemap>
> 
> When I run this, I can only see the 'hi' but not the xsl variable.
> anyone has any ideas what I might be doing wrong?
> 
> thanks
> 
> nayeem
> 


-- 
Want to be a Chess Artist? - groups-beta.google.com/group/ChessCombinations/
Whats it like to dance in London? -
groups-beta.google.com/group/LondonDanceNetwork/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 
 
This message is for the named person's use only. It may contain confidential, 
proprietary or legally privileged information. No confidentiality or privilege 
is waived or lost by any mistransmission. If you receive this message in error, 
please notify the sender urgently and then immediately delete the message and 
any copies of it from your system. Please also immediately destroy any 
hardcopies of the message. You must not, directly or indirectly, use, disclose, 
distribute, print, or copy any part of this message if you are not the intended 
recipient. The sender's company reserves the right to monitor all e-mail 
communications through their networks. Any views expressed in this message are 
those of the individual sender, except where the message states otherwise and 
the sender is authorised to state them to be the views of the sender's company.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to