cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ross Burton" <ross.bur...@mail.com>
Subject [C2] XSP problems...
Date Thu, 29 Jun 2000 20:43:50 GMT
Tonight I started rewriting a site my girlfriend and I were writing from
HTML to XML using Cocoon 2.  Part of the site I wanted to implement using
XSP: the menu label images.  Using the ImageSerializer (originally from
Stylebook) I am creating NRG documents based upon a request-time parameter.
Well, I want to...

I have tried this:

<xsp:page language="java"
   xmlns:xsp="http://xml.apache.org/xsp"
    xmlns:xsp-request="http://xml.apache.org/xsp/request"
>
 <!-- handle rollover images too! -->
 <image width="91" height="30" bgcolor="66CCFF">
  <text font="Verdana" size="15" x="3" y="8" valign="top" color="000000">
   <xsp:attribute name="text">
    <xsp-request:get-parameter name="label" default="Label"/>
   </xsp:attribute>
  </text>
 </image>
</xsp:page>

But this doesn't work, though it does seem intuitive.  So I tried using
xsp:element as well:

<xsp:page language="java"
   xmlns:xsp="http://xml.apache.org/xsp"
    xmlns:xsp-request="http://xml.apache.org/xsp/request"
>
 <image width="91" height="30" bgcolor="66CCFF">
  <xsp:element name="text">
   <xsp:attribute name="font">Verdana</xsp:attribute>
   <xsp:attribute name="size">15</xsp:attribute>
   <xsp:attribute name="x">3</xsp:attribute>
   <xsp:attribute name="y">8</xsp:attribute>
   <xsp:attribute name="valign">top</xsp:attribute>
   <xsp:attribute name="color">000000</xsp:attribute>
   <xsp:attribute name="text">
    <xsp-request:get-parameter name="label" default="Label"/>
   </xsp:attribute>
  </xsp:element>
 </image>
</xsp:page>

Which also doesn't work!  All of the attributes of the <text> element are
empty, although I am specifying values.  The text attributes is correct,
though...

Is this a silly mistake or a bug?  I guess I'm just missing something...

BTW: just got Tomcat from CVS working, how do I reduce the number of
processes it spawns (it eats memory) and any idea why it takes about 20
seconds to shutdown?

Thanks,
Ross Burton


Mime
View raw message