cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Muhamad Nazir <muhamadna...@medical-online.net>
Subject My problem with XSP
Date Wed, 04 Jul 2001 10:01:19 GMT
Hi everyone,

I'm new in cocoon and some doubt occured in my codes. I have an XSP file
which displayed like this :

<?xml version="1.0"?>
     <xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.apache.org/1999/XSL/Core"
          xmlns:xsp="http://www.apache.org/1999/XSP/Core"
     xmlns:request="http://www.apache.org/1999/XSP/Request"
     xmlns:util="http://www.apache.org/1999/XSP/Util"
     xmlns:prototype="http://www.medical-online.net/psg/prototype"
   >

<xsl:template match="xsp:page">
 <xsl:copy>
  <xsl:apply-templates select="@*" />
  <xsl:apply-templates />
 </xsl:copy>
</xsl:template>

  <xsl:template match="prototype:data">

    <xsp:logic>
   String msg = "My Testing";
   String dob =  <request:get-parameter name="dob"/>;
   </xsp:logic>

  <data>
   <!--<xsp:expr>dob</xsp:expr> -->
   <xsp:expr>msg</xsp:expr>
  </data>

 </xsl:template>

 <xsl:template match="@*|node()" priority="-1">
  <xsl:copy>
    <xsl:apply-templates select="@*|node()" />
   </xsl:copy>
 </xsl:template>

</xsl:stylesheet>

and my xml file look like this :

<?xml version="1.0"?>

<?cocoon-process type="xsp"?>
<?xml-logicsheet href="logicsheet.request.xsl"?>
<?cocoon-process type="xslt"?>
<?xml-stylesheet type="text/xsl" href="request-html.xsl"?>

<xsp:page
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
 xmlns:request="http://www.apache.org/1999/XSP/Request"
 xmlns:util="http://www.apache.org/1999/XSP/Util"
 xmlns:prototype="http://www.medical-online.net/psg/prototype"
 >

 <page>
 <prototype:data/>
 </page>

</xsp:page>

my question is, whenever I changed the the msg    String msg = "My
Testing"; to    String msg = "My Tesing is not working"; I always come
to the same error. msg still displaying "My Testing" at the browser.

I hope someone can help me pls, I've been working on this thing for a
day already.

TQ, in advance.
~ Nazir ~






---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message