cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Philippe Guillard <pguill...@citycita.net>
Subject error-handling on a "cincluded" pipeline only
Date Tue, 02 Aug 2005 04:57:48 GMT
Hi all,

I'd like to handle the error on a "cincluded" pipeline without 
generating an error for the main pipeline. I mean in case the cinclude 
has a trouble, i still want the main thing to be rendered and just a 
"not available " message in replavement of what should be rendered for 
the cinclude. What should i do? Should be similar to portal coplets.

Regards,
Phil

Sample:
      <map:match pattern="main">
        <map:generate src="main"/>
         <map:transform src="main.xsl"/>    (inside there is a cinclude)
         <map:transform type="cinclude"/>
        <map:serialize/>
      </map:match>

    <map:match pattern="included">
         <map:generate src="included.xml"/>  
        <map:serialize/>
        <!-- NOT OK
        <map:handle-errors>
          <map:transform src="stylesheets/system/error2html.xsl"/>
          <map:serialize status-code="500"/>
        </map:handle-errors>-->      
    </map:match>

    <!-- This generates an error page globally-->
   <map:handle-errors>
        <map:generate src="notavailable.xml"/>
        <map:serialize/>
   </map:handle-errors>

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


Mime
View raw message