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>&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.
Hmm. That doesn't look right to me - first (without testing) I'm not sure <xsp:expr> will get evaluated inside of <xsp:logic>. It may just be written as xml. Check your final page if you can, to see what it's building.
I would try something like:
<xsp:element name="th"> <xsp:expr>$nodes[1] || "&nbsp;"</xsp:expr> </xsp:element>
You don't need all that extra logic and nested tags - the beauty of xsp:expr is that it evaluates a perl expression, which is perfect for your situation.
Let me know how that goes, Nate
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]