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.

Thanks for your help

Michael




Vadim Gritsenko wrote:
00d401c1a46f$2be3a970$90a4558b@vgritsenkopc">
From: Michael Wechner [mailto:[EMAIL PROTECTED]]

Hi

Does anybody know if the XInclude Transformer is actually resolving
the
"xi:include" recursively?

No.

I tried something like that:

department.xml:
xi:include href="group.xml"

group.xml:
xi:include href="member.xml"

member.xml:
Michael

and got the following result:

department.xml:
xi:include href="member.xml"

group.xml:
Michael

Thanks for your help

You have to use something like:

department.xml:
xi:include href="cocoon:/group.xml"
group.xml:
xi:include href="cocoon:/member.xml"
member.xml:
Michael

with the sitemap like:

<map:match pattern="*.xml">
<map:generate ...>
<map:transform type="xinclude"/>
<serialize type="xml"/>
</map:match>

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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>





Reply via email to