Hi Dominic,

You can do:

<results>
        <xsp:attribute
name="status"><xsp:expr>status</xsp:expr></xsp:attribute>
</results>

Hope that helps!

Harry

-----Original Message-----
From: Dominic Reynolds [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 5:22 PM
To: [EMAIL PROTECTED]
Subject: Parameter substitution in an XML attribute tag


I have an xsp file that accesses paramaters passed back from an action.
The xsp generates an XML file and the XML has attributes whose values are
the 
value of the parameter:

======== xsp file snippet===============
<results status="<xsp:expr>status</xsp:expr>">
</results>
==================================
This doesn't work and the stack trace reports that characters such as '<' 
can't be in the attribute value. 

Is there another way to push these parameter values into the attribute
value?


Thanks,
dominic.


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

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

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

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

Reply via email to