cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Recursive XInclude
Date Thu, 24 Jan 2002 01:26:57 GMT
>>>
From: Michael Wechner [mailto:cocoonu@wyona.org] 

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

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 "http://slashdot.org/" into
"/usr/local/tomcat/webapps/Cocoon/http://slashdot...".  The solution is
to add a base="http://slashdot.org" 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
(href="/slashdot.xml").
--------------------

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

Vadim


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


Mime
View raw message