cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Crine <cr...@4dconcept.fr>
Subject Re: Aggregation and XInclude ?
Date Fri, 05 Mar 2004 12:21:28 GMT
Is this working ?

<map:part element="content" 
ns="<http://www.xmlmill.com/content>http://www.xmlmill.com/content" 
src="cocoon:/myfirstincludeDocument_{1}_{2}"/>

PS :  you can also send the parameters in the request using 
"cocoon:/myfirstincludeDocument?variable1={1}&amp;variable2={2}"

Then you create antohre pipeline :


<map:match pattern="myfirstincludeDocument_*_*">
   <map:generate type="file" src="documents/{1}/{2}.xml"/>
   <map:transform type="cinclude"/>
   <map:serialize type="xml"/>
</map:pattern>


Hope this gives you some clues.


Lionel


At 23:32 01/03/2004 +0100, you wrote:
>Hi,
>
>I aggregate some content:
>
>...
>         <map:aggregate element="page">
>           <map:part element="topnavbar" 
> ns="<http://www.xmlmill.com/topnavbar>http://www.xmlmill.com/topnavbar" 
> src="documents/home/menu.xml"/>
>           <map:part element="mainnavbar" 
> ns="<http://www.xmlmill.com/mainnavbar>http://www.xmlmill.com/mainnavbar" 
> src="documents/{1}/menu.xml"/>
>           <map:part element="content" 
> ns="<http://www.xmlmill.com/content>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,
>

Lionel CRINE
Ingénieur Systèmes documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.58.70.70


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


Mime
View raw message