oops. Yeah, I put the xsp:content elements in the 'if' condition to see if it would help.
But, after comparing the working java file from 2.0.3 with the one created with 2.0.1, I found the following commented below: > 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> > } > > >Here is the java file that is created to be compiled: > > > > if (xspAttr.addAttribute("", "name", "name", "CDATA", > >"test-name-wcart"); Notice here, though, how the code should be: XSPSessionHelper.getSessionAttribute(session, String.valueOf("test-name-wcart"), null) > > > > > >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. The working java file created from 2.0.3 looks like this with the same xsp: if( ( XSPSessionHelper.getSessionAttribute(session, String.valueOf("test-name-wcart"), null) ) == null || ((String) ( XSPSessionHelper.getSessionAttribute(session, String.valueOf("test-name-wcart"), null) ) ).length() == 0){ 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>