Try:

<map:serialize type="xml"/>

instead of

<map:serialize type="xsl"/>

Gr,

Jeroen

On Tue, Sep 7, 2010 at 1:10 PM, Shweta Singhai <[email protected]>wrote:

>  Hi,
>
>
>
> This is the code I am using in my .xsp file.
>
>
>
> <?xml version*=*"1.0" encoding*=*"UTF-8"?>
> <?cocoon*-*process type*=*"xsp"?>
> <xsp:page language="java"
> xmlns:xsp="http://www.apache.org/1999/XSP";>
> <xsp:logic>
> String callme="Hello World";
> </xsp:logic>
> <document>
> <xsp:expr>callme</xsp:expr>
> <xsp:comment>This is a comment</xsp:comment>
> </document>
> </xsp:page>
>
>
>
> When I am running this file the output is same as .xsp file contents.
>
> Can you please tell me where am I lacking?
>
>
>
>
>
> Thanks,
>
> Shweta
>
>
>
>
>
> *From:* Jeroen Reijn [mailto:[email protected]]
> *Sent:* Tuesday, September 07, 2010 4:31 PM
>
> *To:* [email protected]
> *Subject:* Re: Problem using XSP pages
>
>
>
> I might be mistaking, but I guess your map serialize should be put to xml
> or something similar. What does your xsp produce. XML,HTML, or something
> else?
>
> On Tue, Sep 7, 2010 at 9:39 AM, Shweta Singhai <[email protected]>
> wrote:
>
> I made a folder with xspdemo name,and create hello.xsp file in it.
>
> In sitemap.xmap,I made this new pipeline for xsp page and write the
> following code:
>
>
>
> <map:pipeline id="xspdemo">
>               <map:match pattern ="xspdemo">
>                     <map:generate src ="xspdemo/hello.xsp" type=
> "serverpages"/>
>                     <map:transform type ="i18n"/>
>
>                     <map:serialize type="xsl"/>
>               </map:match>
>                 <map:match pattern="spring-bean">
>         <map:call function="demo"/>
>       </map:match>
>         </map:pipeline>
>
>
>
> Browser showing nothing L
>
> Is there is any thing that I have to do for xsp pages….??
>
>
>
> *From:* Jos Snellings [mailto:[email protected]]
> *Sent:* Tuesday, September 07, 2010 12:41 PM
>
>
> *To:* [email protected]
> *Subject:* Re: Problem using XSP pages
>
>
>
> OK, what further details have you got for us?
>
> - logs? is something actually happening, going wrong?
> - or do you see no trace of activity at all?
> - what is in your sitemap.xmap?
>
> Cheers,
> Jos
>
>
> On 09/07/2010 08:34 AM, Shweta Singhai wrote:
>
> Hi Jos,
>
>
>
> Yes its cocoon 2.2
>
>
>
>
>
> *From:* Jos Snellings 
> [mailto:[email protected]<[email protected]>]
>
> *Sent:* Tuesday, September 07, 2010 12:02 PM
> *To:* [email protected]
> *Subject:* Re: Problem using XSP pages
>
>
>
> Hi, Shweta,
>
> Please tell us first which version cocoon you deployed. Is that 2.2?
>
> Cheers,
> Jos
>
> On 09/07/2010 07:46 AM, Shweta Singhai wrote:
>
> Hi All,
>
>
>
>
>
>
>
> This is Shweta, I am new in cocoon, I configured cocoon block with maven
> server ..and also with ant. For a simple block its working properly, but
> when I create a xsp file and try to run same as  simple xml file , then its
> not working, can any one tell me, is there any  special setting or
> configuration require for xsp pages...??
>
>
>
> Please help me in run and configuration of xsp pages.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Shweta Singhai
>
> Technical Analyst
>
> Ictect, Inc.
>
> [email protected]
>
>
>
> "The IMPOSSIBLE is often UNTRIED"
>
>
>
>
>
>
>
>
>

Reply via email to