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))) {
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(
,
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
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))) {
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 --
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