Title: parameter from jxtemplate generator and xinclude ?
Hi Chris,
 
perhaps you need to try it with:
 
   <TOTAL xmlns:xi="http://www.w3.org/2001/XInclude">
     <xi:include href=""/>
        <xi:fallback/>
     </xi:include>
    <xi:include href=""/>
   </TOTAL>
 
Greetz,
 
Jeroen
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Posted At: Tuesday, January 25, 2005 3:37 PM
Posted To: Cocoon User List
Conversation: parameter from jxtemplate generator and xinclude ?
Subject: parameter from jxtemplate generator and xinclude ?

Hi,
using cocoon2.1.3, my problem is about how to get one parameter from jxtemplate generator and xinclude

my sitemap.xmap look like this
xml version="1.0" encoding="UTF-8" ?>
<map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
<map:components>
 <map:generators default="file">
  <map:generator name="linkstatus" src="" />
  <map:generator label="content,data" logger="sitemap.generator.jx" name="jx" src="" />

  </map:generators>

 <map:transformers default="xslt">
  <map:transformer name="xinclude" src="" />
  </map:transformers>
  <map:readers default="resource" />
 <map:serializers default="html">
  <map:serializer name="xls" src="" locale="us" />
  </map:serializers>
 <map:matchers default="wildcard">
 <map:matcher logger="sitemap.matcher.header" name="filename" src="">

 <input-module name="request-param">
  <parameter>filename</parameter>
  </input-module>
  </map:matcher>
  </map:matchers>
  <map:selectors default="browser" />
</map:components>

<!--  =========================== Views ===================================
  -->
 <map:views>
 <map:view from-label="content" name="content">
  <map:serialize type="xml" />
  </map:view>
 <map:view from-label="content" name="pretty-content">
  <map:transform src="" />
  <map:serialize type="html" />
  </map:view>
 <map:view from-position="last" name="links">
  <map:serialize type="links" />
  </map:view>
  </map:views>
 <!--  =========================== Pipelines =================================
  -->
<map:pipelines>
</map:pipeline>

<map:match pattern="TEST">
 <map:generate type="jx" src="">
  <map:parameter name="prefix" value="FILE1" />
  </map:generate>
  <map:transform type="xinclude"/>
  <map:serialize type="xml" />
</map:match>

</map:pipeline>
</map:pipelines>
</map:sitemap>


and then include-description.xml :
 
   <TOTAL xmlns:xi="http://www.w3.org/2001/XInclude">
     <xi:include href=""/>
        <xi:fallback/>
     </xi:include>
    <xi:include href=""/>
   </TOTAL>

this parameter 'prefix' is still blank. Where is the problem ?
Everything is ok if I replace ${cocoon.parameters['prefix']} with 'FILE1'.

I need some help !
Thanks
Chris


Reply via email to