cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avi Kivity <>
Subject Re: Including generated content
Date Wed, 01 May 2002 08:03:41 GMT
Vadim Gritsenko was heard to say, On 05/01/2002 07:28 AM:
>> From: Avi Kivity []
>> I'd like to include content generated by on XSP in another. Looks like
> I
>> have three options:
>> 1. Use <map:aggregate/> - I don't want to do that as it doesn't allow
> me
>> control of where to place content (I'd like to place one document
> inside
>> another, not alongside).
> Yes, there is not. You could use XSLT to move things around.

I'd rather not write code like that.

>> 2. The xinclude/cinclude transformers - two problems: they don't work
>> with absolute URLs (eg cocoon://mydoc.xsp; I patched this) and they
> IIRC, for xinclude one must use <ns:xinclude base="protocol:/path/"
> href="file"/> or something like this.

It's xml:base. However, href="absolute uri" should work and doesn't. I 
consider that a bug. I provided a patch earlier that fixes it (by 
calling new URL(base, href), which handles relative and ansolute URLs 

>> don't understand the cocoon: protocol (anybody know how to work around
>> this?)
> Don't know how could you miss this one:
> p/aggregate.xsp?rev=1.4&content-type=text/vnd.viewcvs-markup

I tested xinclude: and extrapolated to cinclude. Sorry about that. Will 
test cinclude shortly.

> It's working from the day one.
> Vadim


Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message