cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <>
Subject Re: dynamic sitemap dependent on response mimetype ?
Date Tue, 18 Feb 2003 13:54:11 GMT
Sounds like you're asking to dynamically affect the pipeline setup after 
the generator is called which is by design impossible.  If so, you'll need 
a component that executes before pipeline setup (which therefore can alter 
pipeline setup) which limits you to actions, matchers, and selectors.  (did 
i miss one?)  Most likely, you're going to want an action.


At 06:20 AM 2/18/2003, you wrote:
>Can i overcome following problem:
>Within a match i read or aggregate some XML-sources from another
>server, e.g.:
><map:match pattern="mypage">
>   <map:generate  src="http://myserver/mypage.xml"/>
>   <map:transform src="mypage.xsl"/>
>   <map:serialize type = "html"/>
>Now suppose, myserver does not send back the content of
>mypage.xml, but another HTTP-200 response containing an
>HTML message with some informal message in it, like
>"site is currenlty down", or something similar.
>What happens in the above case is, that my style sheet simply
>gets something very different from what it expected. Possibly
>even the response is not well formed... In fact getting the wrong
>mimetype is an error, but what i received is still valuable and i
>want to send this back instead of the expected xml-data:
>What i search is a possibility to simply skip the transformation if i
>get something else, than say "plain/xml" as mimetype back from
>myserver. Instead doing the transformation, i want directly send back
>what i gathered from myserver so far.
>How can this be done ?
>And going one step further what can i do in this case:
><map:match pattern="mypage">
>   <map:generate  src="http://myserver/mypage"/>
>   ...
>Now lets say, i don't know at all, what mimetype myserver
>will return, but i wanted to do something, if mimetype is plain/xml
>and simply return the data as is in any other case...
>How could i achieve this ?
>Or is there something, that is so obvious and i simply
>don't see it ?
>regards, hussayn
>Dr. Hussayn Dabbous
>SAXESS Software Design GmbH
>Neuenhöfer Allee 125
>50935 Köln
>Telefon: +49-221-56011-0
>Fax:     +49-221-56011-20
>Please check that your question  has not already been answered in the
>FAQ before posting.     <>
>To unsubscribe, e-mail:     <>
>For additional commands, e-mail:   <>

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message