Or:
<mynode>
<xsp:attribute name="myattr">
<xsp:expr>foo.getBar()</xsp:expr>"/>
</xsp:attribute>
</mynode>
> -----Message d'origine-----
> De : Anthony Diodato [mailto:[EMAIL PROTECTED]]
> Envoyé : mardi 17 juillet 2001 17:44
> À : '[EMAIL PROTECTED]'
> Objet : RE: include xsp:expr inside attributes?
>
>
> <xsp:logic>
> Element mynode = document.createElement("mynode");
> mynode.setAttribute("myattr", foo.getBar());
> xspCurrentNode.appendChild(mynode);
> </xsp:logic>
>
> -----Original Message-----
> From: Seth Ladd [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 17, 2001 11:39 AM
> To: [EMAIL PROTECTED]
> Subject: include xsp:expr inside attributes?
>
>
> Hello,
>
> I'm not sure how to accomplish the following. I was hoping
> someone would
> point me in the right direction?
>
> I would like to do the following:
>
> <mynode myattr="<xsp:expr>foo.getBar()</xsp:expr>"/>
>
> But, of course, that is not wellformed XML. Is there a way
> to accomplish
> that is XSP?
>
> Thanks very much,
> Seth
---------------------------------------------------------------------
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]>