Hello AxKittens

I have a strange problem with an XSP page.

This works as expected:

<xsp:logic>
while (@filers) {
my @nodes = splice @filers,0,2 ;
<xsp:element name="tr">
<xsp:attribute name="align">center</xsp:attribute>
<xsp:element name="td">
<xsp:element name="a"><xsp:attribute name="href"><xsp:expr>$config{index_url}</xsp:expr>?filer=<xsp:expr>$nodes[0]</xsp:expr></xsp:attribute><xsp:element name="img"><xsp:attribute name="src"><xsp:expr>$download{$nodes[0]}{cpu}</xsp:expr></xsp:attribute><xsp:attribute name="border">0</xsp:attribute></xsp:element></xsp:element>
</xsp:element>



<xsp:element name="td">
<xsp:logic>
if ($nodes[1]) {
<xsp:element name="a"><xsp:attribute name="href"><xsp:expr>$config{index_url}</xsp:expr>?filer=<xsp:expr>$nodes[1]</xsp:expr></xsp:attribute><xsp:element name="img"><xsp:attribute name="src"><xsp:expr>$download{$nodes[1]}{cpu}</xsp:expr></xsp:attribute><xsp:attribute name="border">0</xsp:attribute></xsp:element></xsp:element>
}
</xsp:logic>
</xsp:element>
</xsp:element>



<xsp:element name="tr"> <xsp:element name="th"> <xsp:expr>$nodes[0]</xsp:expr> </xsp:element>


<xsp:logic>
if ($nodes[1]) {
<xsp:element name="th"><xsp:expr>$nodes[1]</xsp:expr></xsp:element>
} else {
<xsp:element name="th"><xsp:content>&amp;nbsp;</xsp:content></xsp:element>
}
</xsp:logic>
</xsp:element>
}
</xsp:logic>



Anyway, if I substitute the last <xsp:logic> section with this:


                <xsp:element name="th">
                <xsp:logic>
                  if ($nodes[1]) {
                    <xsp:expr>$nodes[1]</xsp:expr>
                  } else {
                    <xsp:content>&amp;nbsp;</xsp:content>
                  }
                </xsp:logic>
                </xsp:element>

This doesn't work but, as far as I can see, should be equivalent to the previous code.

Where am I doing wrong?

Ciao and thanks in advance
--bronto

--
Marco Marongiu                            Email: [EMAIL PROTECTED]
System Administrator                      Phone: +39 070 460 1684
Tiscali S.p.A.                            Fax:   +39 070 460 9684
International IT Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to