On Fri, 22 Jun 2001, Morrison, John 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>
Unfortunately the sitemap cannot know where the sitemap component
selection process would end. It's not enought to close the match
element. You need to specify a serializer to signal end-of-pipeline to
the sitemap. So your example should work if you write it like this:
<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:serialize/>
</map:match>
<map:match patter="catalog">
<map:generate src="docs/experiancatalog.xml"/>
<map:serialize/>
</map:match>
Giacomo
>
> '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: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]