cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann ...@cocooncenter.org>
Subject Re: Problem with Views
Date Mon, 16 Sep 2002 15:23:08 GMT
Lajos,

 >
 > Where is the label attribute in your pipeline? Or do you have it
 > declared at the component level?

I use the FileGenerator with the "content" label
which is defined as follows:

<map:generator name="file"
   label="content"
   src="org.apache.cocoon.generation.FileGenerator"
   pool-max="32" pool-min="16" pool-grow="4"/>

Andreas

 >
 > Andreas Hartmann wrote:
 >
 >> Hi cocoon-users,
 >>
 >> I want to create a Lucene index, but it doesn't work - no index
 >> is generated.
 >> The source of the problem seems to be that the views are
 >> not presented correctly. When I access a page with
 >>
 >> http://<host>:<port>/path/to/resource?cocoon-view=content
 >>
 >> I get the finished HTML page instead of the content.
 >> My views declaration:
 >>
 >>  <map:views>
 >>   <map:view from-label="content" name="content">
 >>    <map:serialize type="xml"/>
 >>   </map:view>
 >>
 >>   <map:view from-position="last" name="links">
 >>    <map:serialize type="links"/>
 >>   </map:view>
 >>  </map:views>
 >>
 >> My pipeline:
 >>
 >>     <map:match pattern="documents/**/*.html">
 >>       <map:generate src="xml/{1}/{2}.xml"/>
 >>       <map:transform src="xslt/page.xsl">
 >>         ... (some parameters)
 >>       </map:transform>
 >>       <map:serialize/>
 >>     </map:match>
 >>     I hope someone can help me.
 >>
 >> Andreas
 >> --------------------------------------------------------------------
 >>    www.cocooncenter.org
 >>    Your Guide to Apache Cocoon
 >> --------------------------------------------------------------------
 >>
 >> ---------------------------------------------------------------------
 >> Please check that your question  has not already been answered in the
 >> FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>
 >>
 >> To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
 >> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
 >>
 >
 >




---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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


Mime
View raw message