cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergio Carvalho <sergio.carva...@acm.org>
Subject Re: Agregating serverpages...?
Date Fri, 22 Jun 2001 20:13:08 GMT

I think you must serialize the results of the parts. Thats how samples use aggregation...

On Fri, 22 Jun 2001 17:09:45 +0100
"Morrison, John" <John.Morrison@uk.experian.com> wrote:

> Could anybody please tell me if the following is possible/correct...?
> 
>    <map:match pattern="myscript.sh">
>     <map:aggregate element="page">
>      <map:part src="catalog" element="public"/>
>      <map:part src="parameters" element="parameters"/>
>     </map:aggregate>
>     <map:serialize/>
>    </map:match>
> 
>    <map:match pattern="parameters">
>     <map:generate type="serverpages" src="docs/parameters.xml"/>
>    </map:match>
>   
>    <map:match patter="catalog">
>     <map:generate src="docs/experiancatalog.xml"/>
>    </map:match>
> 
> 'cause it keeps going wrong with the following details...
> 
> DEBUG   99322   [cocoon  ] (Thread-8): The sitemap has been successfully
> compiled!
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Changing Cocoon
> context(sitemap.xmap) to prefix()
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): 	from
> context(file:/D:/Wrkfile/Repositories/work/test/) and prefix()
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): 	at URI myscript.sh
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): New context is
> file:/D:/Wrkfile/Repositories/work/test/
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Retrieving a
> org.apache.cocoon.components.pipeline.CachingEventPipeline from the pool
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Retrieving a
> org.apache.cocoon.components.pipeline.CachingStreamPipeline from the pool
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Matched
> wildcardmatcher_wildcard_NBB
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Component
> generator:!content-aggregator!( emptyParam  )
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Retrieving a
> org.apache.cocoon.sitemap.ContentAggregator from the pool
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): ContentAggregator: root
> element='page' ns='' prefix=''
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): ContentAggregator: part
> uri='catalog' element='public' ns='' stripRootElement='' prefix=''
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): ContentAggregator: part
> uri='parameters' element='parameters' ns='' stripRootElement='' prefix=''
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Component
> serializer:xml( emptyParam  )
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Retrieving a
> org.apache.cocoon.serialization.XMLSerializer from the pool
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): ContentAggregator:
> collecting internal resource catalog
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Retrieving a
> org.apache.cocoon.components.pipeline.CachingEventPipeline from the pool
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Retrieving a
> org.apache.cocoon.components.pipeline.CachingStreamPipeline from the pool
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): processing internal
> sitemap request
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Matched
> wildcardmatcher_wildcard_NF5
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Component
> generator:file( emptyParam  )
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Source=docs/catalog.xml
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Retrieving a
> org.apache.cocoon.generation.FileGenerator from the pool
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Matched
> wildcardmatcher_wildcard_NFC
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Component
> generator:file( emptyParam  )
> DEBUG   99322   [cocoon  ] (HttpProcessor[8080][4]): Source=docs/catalog.xml
> WARN    99322   [cocoon  ] (HttpProcessor[8080][4]): Error, try to process
> the error page
> org.apache.cocoon.ProcessingException: Generator already set. You can only
> select one Generator (file)
> 	at
> org.apache.cocoon.components.pipeline.AbstractEventPipeline.setGenerator(Abs
> tractEventPipeline.java:89)
> 	at
> org.apache.cocoon.components.pipeline.CachingEventPipeline.setGenerator(Cach
> ingEventPipeline.java:86)
> 	at
> org.apache.cocoon.www.sitemap_xmap.wildcardMatchNFC(sitemap_xmap.java:1083)
> 
> 
> =======================================================================
> Information in this email and any attachments are confidential, and may
> not be copied or used by anyone other than the addressee, nor disclosed
> to any third party without our permission.  There is no intention to
> create any legally binding contract or other commitment through the use
> of this email.
> 
> Experian Limited (registration number 653331).  
> Registered office: Talbot House, Talbot Street, Nottingham NG1 5HF
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 

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


Mime
View raw message