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 00:36:32 GMT
> From: Michael Wechner [mailto:cocoonu@wyona.org]
> 
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message