You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Kirk Woerner <ki...@unus.com> on 2000/07/02 10:18:50 UTC

Cascading xincludes

Does this work?  That is

file1.xml
<Item-one>
   <xinclude:include parse="xml" href="file2.xml">
</Item-one>

file2.xml
<Item-two>
   <xinclude:include parse="xml" href="file3.xml">
</Item-two>

file3.xml
<Item-three>Some stuff</Item-three>

would result in

<item-one>
   <item-two>
      <item-three>some stuff</Item-three>
   </item-two>
</item-one>

It doesn't appear to for me.

Re: Cascading xincludes

Posted by Donald Ball <ba...@webslingerZ.com>.
> Does this work?  That is
> 
> file1.xml
> <Item-one>
>    <xinclude:include parse="xml" href="file2.xml">
> </Item-one>
> 
> file2.xml
> <Item-two>
>    <xinclude:include parse="xml" href="file3.xml">
> </Item-two>
> 
> file3.xml
> <Item-three>Some stuff</Item-three>
> 
> would result in
> 
> <item-one>
>    <item-two>
>       <item-three>some stuff</Item-three>
>    </item-two>
> </item-one>
> 
> It doesn't appear to for me.

it sure doesn't. it oughta be relatively simple to modify xinclude
processor to do so, though - checking for circular references may be
tricky, i dunno. anyway, patches are welcome, but be sure you're working
from the latest cvs.

(i'm a busy guy and only really get a chance to work on cocoon in spurts.)

- donald