Hi André,

> > I am playing with XIncludeTransformer, and I am trying 
> something like
> >
> > <xi:include href="cocoon://myproject/include.xml"/>
> >
> > But it is not working. So, what can I put in "href" attribute?
> >   
> 
> You have to put the xinclude transform in your pipeline :
> 
> <map:transform type="xinclude" />
> 
> And declare the class for the xinclude transformer in your sitemap :
> 
> <map:transformer name="xinclude" 
> src="org.apache.cocoon.transformation.XIncludeTransformer" 
> logger="sitemap.transformer.xinclude" pool-grow="2" pool-max="16" 
> pool-min="2"/>

Yes, I have done this. But the problem is with cocoon:// pseudo-protocol.
If I use "http://example.org/doc.xml"; as href attribute, it works fine
If I use "doc.xml" as href attribute, it works fine (if doc.xml is in the 
directory)
If I use "cocoon://doc-pipe", it is not working (even when I have a pipeline 
that match with "doc-pipe")
If I use "/doc-pipe", it is not working (even when I have a pipeline that match 
with "doc-pipe")

More ideas?

Regards,

Carlos Tejo Alonso
R&D and Innovation Department
CTIC Foundation [Asturias, Spain]
www.fundacionctic.org 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to