Hello,

Using C2 attributes are evaluated before the tags.

That's why :

<mytag>
        <xsp:logic>
                if (true) {
        </xsp:logic>
        <xsp:attribute name="att1" value="true"/>
        <xsp:logic>
                } else {
                        String toto = "hello";
        </xsp:logic>
        <xsp:attribute name="att1" value="false"/>
        <xsp:attribute name="att2" ><xsp:expr>toto</xsp:expr></xsp:attribute>
        <xsp:logic>
                }
        </xsp:logic>
My tage body...
</mytag>

... works well with C1... but with C2... mytag has no attributes !!! For
the attribute 'att2.. it does not compile with C2 because toto is not
yet defined ... ;o(

Is it a bug in C2 (the xsp parser)... ??? Or should I have never used it
at all ?


If it could work, it would make my xsp files cleaner !!

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