You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Graaf, Edgar de (fin)" <Ed...@ordina.nl> on 2002/05/07 10:40:16 UTC

XInclude

This probably already has been discussed. 
But I have two files I want to aggregate. One way to do it is with
map:aggregate.
However xinclude has more possiblities, for example I can add a header. 
My big problem is that I can't use neither a url or a cocoon:/.... in
xinclude (or can I?). Even though the attribute is named href, it doesn't
call the url but the file.
Why is this so terrible? Well I want the XSP to execute and the result
should be included in another file.

Is there anyone who can help?

Regards,

Edgar

---------------------------------------------------------------------
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: XInclude

Posted by Patrick Reuter <pa...@gmx.de>.
Hi Edgar,

I use the cinclude transformer -
[SITEMAP] <map:transform type="cinclude"/> -
with cocoon:/ links -
[SOURCE] <cinclude:include src="cocoon:/message" element="message" /> - 
... and this works fine :-)

Patrick







Graaf, Edgar de (fin) wrote:
> This probably already has been discussed. 
> But I have two files I want to aggregate. One way to do it is with
> map:aggregate.
> However xinclude has more possiblities, for example I can add a header. 
> My big problem is that I can't use neither a url or a cocoon:/.... in
> xinclude (or can I?). Even though the attribute is named href, it doesn't
> call the url but the file.
> Why is this so terrible? Well I want the XSP to execute and the result
> should be included in another file.
> 
> Is there anyone who can help?
> 
> Regards,
> 
> Edgar
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


RE: XInclude

Posted by Vadim Gritsenko <va...@verizon.net>.
You should use base="" attribute. IIRC:

<x:include base="cocoon:/path/" url="to/page"/>

Vadim

--
Resistance is futile. 

> From: Graaf, Edgar de (fin) [mailto:Edgar.de.Graaf@ordina.nl]
> 
> This probably already has been discussed.
> But I have two files I want to aggregate. One way to do it is with
> map:aggregate.
> However xinclude has more possiblities, for example I can add a
header.
> My big problem is that I can't use neither a url or a cocoon:/.... in
> xinclude (or can I?). Even though the attribute is named href, it
doesn't
> call the url but the file.
> Why is this so terrible? Well I want the XSP to execute and the result
> should be included in another file.
> 
> Is there anyone who can help?
> 
> Regards,
> 
> Edgar


---------------------------------------------------------------------
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>