On 7 September 2010 14:44, Shweta Singhai <shweta.sing...@ictect.com> wrote:

> Hi,
>
> When I Put this
>
> <map:generator name="serverpages"
> src="org.apache.cocoon.generation.ServerPagesGenerator"/>
>
>
> in my sitemap, then its giving error :(
>
> error is:
>
> HTTP ERROR: 500
>
> Fatal error parsing
>
> file:///C:/DOCUME~1/sweta/LOCALS~1/Temp/Jetty_0_0_0_0_8888_webapp____4s5m8/b
> locks/custom-block/sitemap.xmap (line 19 col. 58): The prefix "map" for
> element "map:generator" is not bound.
>
> RequestURI=/custom-block/xspdemo
>

You probably haven't declared the XML namespace prefix map:

See http://www.w3schools.com/xml/xml_namespaces.asp
The URI is http://apache.org/cocoon/sitemap/1.0

Jasha Joachimsthal

j.joachimst...@onehippo.com - ja...@apache.org

www.onehippo.com
Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
San Francisco - Hippo USA Inc. 185 H Street, suite B, Petaluma CA 94952 +1
(707) 7734646

>
>
>
>
> -----Original Message-----
> From: Johan Cwiklinski [mailto:johan.cwiklin...@ajlsm.com]
> Sent: Tuesday, September 07, 2010 5:56 PM
> To: users@cocoon.apache.org
> Subject: Re: Problem using XSP pages
>
> Hi,
>
> Le 07/09/2010 14:12, Shweta Singhai a écrit :
> > When I try
> >
> >
> >
> > <map:serialize type="xml"/> in my sitemap.xmap
> >
> >
> >
> > Then my browser showing:
> >
> > As Output of xsp page. But I think its not a proper output. I don’t know
> > where I did mistake. Can any one tell me please.
>
> Looks like your XSP page is simply read, not executed.
>
> If you have properly build the XSP block (that is no longer shipped as
> default in cocoon 2.2), maybe you have missed to declare the generator?
>
> You should have added something like the following in your sitemap.xmap:
> <map:generator name="serverpages"
> src="org.apache.cocoon.generation.ServerPagesGenerator"/>
>
> >
> >
> >
> > Thanks,
> >
> > Shweta
> >
> >
>
> Regards,
> --
> Johan Cwiklinski
> AJLSM
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org
> For additional commands, e-mail: users-h...@cocoon.apache.org
>
>

Reply via email to