It would be strange that this combination doesn't work, I use an aggregation too but afterwards do XSLT transformations, and this does work (so it should work with other transformers, if syntax is right). Some things to be sure of: is you're namespacing correct? Is there an xmlns:xi="http://www.w3.org/2001/XInclude"? serialize to xml just after your aggregation to make sure its there. Also consider cocoon's transformer CInclude, if you're app is cocoon-only, you might want to have that transformer to use all of cocoon's strength (such as caching).You can also replace your aggregation with another xinclude on a page containing those three elements. But still there's no reason why it shouldn't work. (You're working with the latest release? if on cvs, well it might be broken.)
 
Kind Regards,
 
Jan
----- Original Message -----
Sent: Monday, March 01, 2004 11:32 PM
Subject: Aggregation and XInclude ?

Hi,
 
I aggregate some content:
 
...
        <map:aggregate element="page">
          <map:part element="topnavbar" ns="http://www.xmlmill.com/topnavbar" src=""/>
          <map:part element="mainnavbar" ns="http://www.xmlmill.com/mainnavbar" src=""/>
          <map:part element="content" ns="http://www.xmlmill.com/content" src=""/>
        </map:aggregate>
        <map:transform type="xinclude" label="links content"/>
...
 
The xml file referenced  by the  src=""/> also contains an include:
...
        <example>
          <xi:include href="">
            <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,
 

Reply via email to