More correct version: <cinclude:include element="SideBar"> <xsp:attribute name="src"><xsp:expr>sourcePage</xsp:expr></xsp:attribute> </cinclude:include>
(xsp:attribute content all in one line) PS: XSL has nothing to do with XSP in this particular context, and XSP *is* XML, thus constructs like <tag attr="<xsp:expr>...</xsp:expr>"/> obviously invalid, because this is *not* valid XML. Vadim -----Original Message----- From: von Schwerdtner, Thomas (GXS, FPI) [mailto:[EMAIL PROTECTED]] Sent: Sunday, June 09, 2002 2:19 PM To: '[EMAIL PROTECTED]' Subject: RE: correct syntax for using variables inside <xsp: .... > > I am using cinclude successfully in an xsp like this: > > <cinclude:include src="mySideBar" element="SideBar"/> > > I would like to use a variable, used elsewhere in the xsp, as part of > the src filename: <snip/> A guess, maybe: <cinclude:include element="SideBar"> <xsp:attribute name="src"> <xsp:expr>sourcePage</xsp:expr> </xsp:attribute> </cinclude:include> --------------------------------------------------------------------- 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]>