cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Winnall <st...@winnall.ch>
Subject Re: Aggregation and XInclude ?
Date Tue, 02 Mar 2004 08:57:17 GMT
I had a similar problem with both xinclude and cinclude. I haven't been 
able to
isolate the problem, but I got the impression that neither xinclude nor 
cinclude
would work on the output of a transformer. I worked around the problem 
by using
a transformer which performed the include by using the document() 
function.

Steve

On 1 Mar 2004, at 23:32, Stefan Geelen wrote:

> Hi,
>  
> I aggregate some content:
>  
> ...
>         <map:aggregate element="page">
>           <map:part element="topnavbar" 
> ns="http://www.xmlmill.com/topnavbar" src="documents/home/menu.xml"/>
>           <map:part element="mainnavbar" 
> ns="http://www.xmlmill.com/mainnavbar" src="documents/{1}/menu.xml"/>
>           <map:part element="content" 
> ns="http://www.xmlmill.com/content" src="documents/{1}/{2}.xml"/>
>         </map:aggregate>
>         <map:transform type="xinclude" label="links content"/>
> ...
>  
> The xml file referenced  by the  src="documents/{1}/{2}.xml"/> also 
> contains an include:
> ...
>         <example>
>           <xi:include href="Example_box.txt">
>             <xi:fallback>
>               <p>Example currently unavailable</p>
>             </xi:fallback>
>           </xi:include>
>         </example>
> ...
>  
> The problem is that the include does not work.  Is it possible to 
> combine and include and aggregation ?
>  
> If not , what is the solution to this problem ?
>  
> Regards,
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message