I got them working now, I forgot to change to generate-str attribute to "serverpages"
Thx -----Message d'origine----- De : Vadim Gritsenko [mailto:[EMAIL PROTECTED]] Envoyé : lundi, 12. août 2002 16:05 À : [EMAIL PROTECTED] Objet : RE: XSP beginner's question: Can't get examples to work > From: yuryx [mailto:[EMAIL PROTECTED]] > > Hahn Kurt (CHA) wrote: > > >Hi, > >I have a fully functional Cocoon 2.02 installation, and I'm testing some > >features that I didn't use so far. Right now, I'm working my way through the > >XSP samples, but they don't work so far. For instance, this XSP (everything > >is directly copied from the samples) > > > ><?xml version="1.0"?> > > > ><xsp:page xmlns:xsp="http://apache.org/xsp"> > > > > > try insert <page> here He does not need page here; and his XSLT does not expect it. > > <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> > > > > > and </page> here > > ></xsp:page> > > > >, processed with this XSL: > > > > > ><?xml version="1.0"?> > ><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > >version="1.0"> > > > ><xsl:template match="/"> > > <html> > > <body> > > <h1> > > <xsl:value-of select="greeting"/> > > > or <xsl:value-of select="."/> (if not inserting <page> tags) instead of > <xsl:value-of select="greeting"/> > > Regards. > Yury. > > > </h1> > > </body> > > </html> > ></xsl:template> > > > ></xsl:stylesheet> > > > > > >should result in an HTML-page showing "Hello, World", but I only get a blank > >page. Does anybofy know how? Hahn, Do sample XSPs work for you? Check sitemap, you must use serverpages generator to process XSPs. Vadim > >Thanks --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>