cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <>
Subject RE: Recursive XInclude
Date Thu, 24 Jan 2002 01:26:57 GMT
From: Michael Wechner [] 

Thanks Vadim, but the XInclude Transformer does not interpret cocoon:
as a protocol, but rather as a filesystem path. I have the same problem
<xi:include href=""/>

It says: Resource can't be found.

I remember there was a thread in the mailing list about something like
that, but I can't
find it anymore.

Sorry for asking the same things again.

It was sad on the list:

There is a bug/feature in the XInclude transformer which assumes that
unless a base attribute is specified somewhere, the <xi:include/>'s href
value is a filename, and prepends the Cocoon install path in front of
it.  This is probably turning your "" into
"/usr/local/tomcat/webapps/Cocoon/http://slashdot...".  The solution is
to add a base="" attribute either at (I believe) or
above (for sure) the <xi:include/> element. Then just use the document
portion of the desired URL for the <xi:include/>'s href attribute

Try this base attribute with cocoon: protocol, it should work.


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