I accomplish this by:
<xinclude:include parse="xml">
<xsp:attribute name="href"><xsp:expr>file</xsp:expr></xsp:attribute>
</xinclude:include>
also, make sure you have the xinclude namespace in the document
Jim
----- Original Message -----
From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
To: "cocoon-users" <[EMAIL PROTECTED]>
Sent: Wednesday, June 06, 2001 11:41 AM
Subject: xsp:element and xinclude
> I would like to include the content of a file into my xsp
> page.
> So I think I need to use this : (to generate the xinclude
> dynamicaly)
> <xsp:element name="whatever">
> <xsp:attribute
> name="xinclude:href"><xsp:expr>file</xsp:expr></xsp:attrib
> ute>
> <xsp:attribute
> name="xinclude:parse">xml</xsp:attribute>
> </xsp:element>
>
> But it's not work : I've got the "whatever" tag in my xml
> flow result but nothing from my file.
> Thanks for your help
> JC
>
>
> --------------
> Profitez de l'offre spéciale Liberty Surf !
> 50 h / 95 F TTC par mois tout compris pendant 3 mois
> http://register.libertysurf.fr/subscribe_fr/signup.php3
>
>
>
> ---------------------------------------------------------------------
> 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]>
>
>
---------------------------------------------------------------------
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]>