|
Hi all. In my webapp, I have to deal with externally
generated data. These data are not every time valid XML, so I need to catch
parsing exceptions and then to continue generating my page. So I designed a
special pipeline which was meant to handle parse errors. When I directly call
the pipeline, the errors are caught and an empty page is generated. But when I try
to load the whole page, it sends me a parse error … I don’t understand why … Thanks in advance. Yvan Here are some pieces of my sitemap : <!—Pipeline which retrieves
external data --> <map:pipeline
type="noncaching"> <map:match
pattern="**/annonces.drfmc"> <map:generate src=""> <map:serialize
type="xml"/> </map:match> <map:match
pattern="**/annonces.ext.xml"> <map:aggregate
element="seminaires"> <map:part src=""> <map:part src=""> <map:part src=""> </map:aggregate> <map:serialize
type="xml"/> </map:match> <map:handle-errors> <map:select
type="exception"> <map:when
test="document-does-not-exist"> <map:generate src=""> <map:serialize
type="xml"/> </map:when> <map:otherwise> <map:generate src=""> <map:serialize
type="xml"/> </map:otherwise> </map:select> </map:handle-errors> </map:pipeline> <map:pipeline> <map:match
pattern="**/annonces.html"> <map:aggregate
element="cmsbody" label="src"> <map:part
src="" <map:part src=""> <map:part src=""> </map:aggregate> <map:transform
src="" label="toto"> <map:parameter
name="use-request-parameters" value="true"/> <map:parameter
name="root" value="/dsm/live"/> </map:transform> <map:serialize
type="xhtml"/> </map:match> </map:pipeline> |
- Sitemap catching exceptions Janet Yvan
- Re: Sitemap catching exceptions Jorg Heymans
- Re: Sitemap catching exceptions Geert Josten
