Re: XSP/Java - simple? problem

2003-06-11 Thread Andreas Hartmann
Hi Derek, Derek Hohls wrote: Hi Can someone explain what is wrong with the following code: labels show=true xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute xsp:logic if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {

Re: XSP/Java - simple? problem

2003-06-11 Thread Derek Hohls
Andreas Yes, the Java code generated does not seem to reflect my *intent* in the XSP (see below) ie. the attributes have been moved outside of the if test for some reason - any ideas how to create a more appropriate code set?? !-- generated code snippet -- xspAttr.addAttribute( ,

Re: XSP/Java - simple? problem

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote: labels show=true xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute xsp:logic if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) { xsp:attribute

Re: XSP/Java - simple? problem

2003-06-11 Thread Christian Haul
On 11.Jun.2003 -- 10:27 AM, Christian Haul wrote: On 11.Jun.2003 -- 08:43 AM, Derek Hohls wrote: labels show=true xsp:attribute name=labelxsp:exprfGraphPtLabel/xsp:expr/xsp:attribute xsp:logic if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) {

Re: XSP/Java - simple? problem

2003-06-11 Thread Joerg Heinicke
This is due to a bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15841. In the code (cocoon-2.1\src\java\org\apache\cocoon\components\language\markup\xsp\java\xsp.xsl): xsl:template match=*[not(namespace-uri(.) = 'http://apache.org/xsp')] !-- matching on your label element --

[FIXED] Re: XSP/Java - simple? problem

2003-06-11 Thread Derek Hohls
Brilliant, thanks Chris. To summarise, this: xsp:logic if ((fGraphPtLabel != null) amp;amp; (fGraphPtLabel.equals(name))) { /xsp:logic xsp:attribute name=rotate14/xsp:attribute xsp:logic } else { /xsp:logic xsp:attribute