cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vadim Gritsenko <vadim.gritse...@verizon.net>
Subject Re: Cocoon 2.0.3 under Enhydra 3.1
Date Wed, 18 Sep 2002 19:00:00 GMT
Matthew Hailstone wrote:

>Vadim,
>
>Here is a portion of my xsp file:
>
>      if( <xsp:content><xsp-session:get-attribute
>name="test-name-wcart"/></xsp:content> == null
>          ||
>          ((String)<xsp:content><xsp-session:get-attribute
>name="test-name-wcart"/></xsp:content>).length() == 0
>         ){
>         <xsp:content>
>

Oh no, not like this, but:

      if(<xsp-session:get-attribute
name="test-name-wcart"/> == null
          ||
          ((String)<xsp-session:get-attribute
name="test-name-wcart"/>).length() == 0
         ){
         <xsp:content>
.....
         </xsp:content>
         }


Vadim



>Here is the java file that is created to be compiled:
>
>    if (xspAttr.addAttribute("", "name", "name", "CDATA",
>"test-name-wcart");
>
> 
>this.contentHandler.startElement("http://apache.org/xsp/session/2.0",
>                                         "get-attribute",
>"xsp-session:get-attribute",
>                                         xspAttr);
>        xspAttr.clear();
>
>
> 
>this.contentHandler.endElement("http://apache.org/xsp/session/2.0",
>                                       "get-attribute",
>"xsp-session:get-attribute");
>        == null || ((String) xspAttr.addAttribute("", "name", "name",
>                    "CDATA", "test-name-wcart");
>
> 
>this.contentHandler.startElement("http://apache.org/xsp/session/2.0",
>                                                     "get-attribute",
>"xsp-session:get-attribute",
>                                                     xspAttr);
>                    xspAttr.clear();
>
>
> 
>this.contentHandler.endElement("http://apache.org/xsp/session/2.0",
>                                                   "get-attribute",
>"xsp-session:get-attribute");
>                   ).length() == 0) {
>
>
>It seems that the xslt (I'm guessing) is not producing the correct java
>code from the xsp-session namespace tags.
>
>Any suggestion/assessment?
>
>Matthew
>  
>


---------------------------------------------------------------------
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