cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Hoskens">
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=""?
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,

  ----- Original Message ----- 
  From: Stefan Geelen 
  Sent: Monday, March 01, 2004 11:32 PM
  Subject: Aggregation and XInclude ?


  I aggregate some content:

          <map:aggregate element="page">
            <map:part element="topnavbar" ns="" src="documents/home/menu.xml"/>
            <map:part element="mainnavbar" ns="" src="documents/{1}/menu.xml"/>
            <map:part element="content" ns="" src="documents/{1}/{2}.xml"/>
          <map:transform type="xinclude" label="links content"/>

  The xml file referenced  by the  src="documents/{1}/{2}.xml"/> also contains an include:
            <xi:include href="Example_box.txt">
                <p>Example currently unavailable</p>

  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 ?


View raw message