On 23.May.2002 -- 09:50 AM, neil wrote:
> I'll try your changes out sometime soon, but for now I'm still using my
> patch but with your switch
> statements added. I've added a default case to the switch:
> 
> This allows you to reuse the same <esql:update-results> if you want to.
> Likewise for <esql:results> and <esql:no-results>.
> Its not "difficult to work with" and I think its an option worth having even
> though its not strictly necessary.

OK, since noone objected, I have done so for HEAD. Just for the
record, I've changed your suggestion in order to avoid scoping
problems.

           switch (_esql_query.getResultCount()) {
           <xsl:for-each select="esql:results">
             case <xsl:value-of select="position()"/>: <xsl:if 
test="position()=last()"><xsl:text>
             default: </xsl:text></xsl:if><xsl:apply-templates select="."/>
                 break;
           </xsl:for-each>
           }

        Chris.

-- 
C h r i s t i a n       H a u l
[EMAIL PROTECTED]
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to