cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hahn Kurt (CHA)" <kurt.h...@etat.ge.ch>
Subject RE: XSP beginner's question: Can't get examples to work
Date Mon, 12 Aug 2002 14:43:49 GMT
I got them working now, I forgot to change to generate-str attribute to
"serverpages"

Thx

-----Message d'origine-----
De : Vadim Gritsenko [mailto:vadim.gritsenko@verizon.net]
Envoyé : lundi, 12. août 2002 16:05
À : cocoon-users@xml.apache.org
Objet : RE: XSP beginner's question: Can't get examples to work


> From: yuryx [mailto:yuryx@mobicomk.donpac.ru]
> 
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>

---------------------------------------------------------------------
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:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message