cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Hoskens" ...@schaubroeck.be>
Subject Re: Aggregation and XInclude ?
Date Tue, 02 Mar 2004 07:17:44 GMT
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 ----- 
  From: Stefan Geelen 
  To: users@cocoon.apache.org 
  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="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,

Mime
View raw message