You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "jquantin@ireste.fr" <jq...@libertysurf.fr> on 2001/06/06 17:41:49 UTC

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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: xsp:element and xinclude

Posted by Jim Moran <ji...@corp.earthlink.net>.
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: "jquantin@ireste.fr" <jq...@libertysurf.fr>
To: "cocoon-users" <co...@xml.apache.org>
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: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>


---------------------------------------------------------------------
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>