cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <DHo...@csir.co.za>
Subject XSP/Java - simple? problem
Date Wed, 11 Jun 2003 06:43:05 GMT
Hi

Can someone explain what is wrong with
the following code:

      <labels show="true">
 
      <xsp:attribute name="label"><xsp:expr>fGraphPtLabel</xsp:expr></xsp:attribute>
      
      <xsp:logic>
      if ((fGraphPtLabel != null) &amp;&amp; (fGraphPtLabel.equals("name"))) {   
          
      </xsp:logic>
        <xsp:attribute name="rotate">14</xsp:attribute>
      <xsp:logic>
      } else {
      </xsp:logic>
        <xsp:attribute name="rotate">1</xsp:attribute>
      <xsp:logic>
      }
      </xsp:logic> 

Gives an output of:

  <labels show="true" label="null" rotate="14" rotate="1">

ie. if the fGraphPtLabel is null, the rotate should be equal to 1
and not 14 as well?!

Thanks
Derek


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Mailscanner thanks transtec Computers for their support.


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