You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Scott Jones <sc...@on-sitemanager.com> on 2001/10/16 02:18:16 UTC

[C2] Error Handling - bypass extra try/catch blocks?

Hello,

I am building a logicsheet where I have many method calls that can throw
a variety of Exceptions.  Rather than place try/catch blocks all over
the place, I'd like to have any and all exceptions that occur to be
displayed using the <handle-errors> section of my sitemap.

However, C2 keeps on demanding that I explicitly handle these
exceptions, but really I'd like for the exceptions to halt the page
execution and be displayed.  Is there a configuration variable that I'm
missing that'll setup this kind of behavior?

Thank you!

Cheers,

Scott

Here's an example:
===========================================================
org.apache.cocoon.ProcessingException: Language Exception:
org.apache.cocoon.components.language.LanguageException: Error compiling
test_xml:
Line 747, column 40:  Exception java.lang.Exception must be caught, or
it must be declared in the throws clause of this method.
===========================================================



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] Error Handling - bypass extra try/catch blocks?

Posted by Sylvain Wallez <sy...@anyware-tech.com>.

Scott Jones a écrit :
> 
> Hello,
> 
> I am building a logicsheet where I have many method calls that can throw
> a variety of Exceptions.  Rather than place try/catch blocks all over
> the place, I'd like to have any and all exceptions that occur to be
> displayed using the <handle-errors> section of my sitemap.
> 
> However, C2 keeps on demanding that I explicitly handle these
> exceptions, but really I'd like for the exceptions to halt the page
> execution and be displayed.  Is there a configuration variable that I'm
> missing that'll setup this kind of behavior?
> 
> Thank you!
> 
> Cheers,
> 
> Scott
> 
A solution can be for your logicsheet to insert a try/catch block when
matching xsp:page and throw exceptions embedded in a
ProcessingException.

-- 
Sylvain Wallez
Anyware Technologies - http://www.anyware-tech.com

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: One XML --> Two XSL

Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 15.Oct.2001 -- 06:14 PM, Antonio Fletes wrote:
> Hello... Cocuneros...
> 
> Somebody know how to link two xsl files in one xml document ???
> 
> I would like to have two stylesheets  for one XML how do I do this ????

a) use both namespaces and just use the tags (taglib case)
b1) include one stylesheet from the other
b2) use two transformation steps

	Chris.

-- 
C h r i s t i a n       H a u l
haul@informatik.tu-darmstadt.de
    fingerprint: 99B0 1D9D 7919 644A 4837  7D73 FEF9 6856 335A 9E08

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


AW: One XML --> Two XSL

Posted by Reinhard Potz <re...@gmx.net>.
Use two xslt-transformers 

		<map:pipeline>
			<map:match pattern="test.xml">
				<map:generate src="xxx.xml"/>
				<map:transform src="yyy.xsl"/>
				<map:transform src="zzz.xsl"/>
				<map:serialize/>
			</map:match>
		</map:pipeline>

Reinhard

 > -----Ursprungliche Nachricht-----
 > Von: Antonio Fletes [mailto:anfl@telnor.com]
 > Gesendet: Dienstag, 16. Oktober 2001 03:15
 > An: cocoon-users@xml.apache.org
 > Betreff: One XML --> Two XSL
 > 
 > 
 > Hello... Cocuneros...
 > 
 > Somebody know how to link two xsl files in one xml document ???
 > 
 > I would like to have two stylesheets  for one XML how do I do this ????
 > 
 > Thanks...
 > 
 > 
 > 
 > 
 > ---------------------------------------------------------------------
 > Please check that your question has not already been answered in the
 > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
 > 
 > To unsubscribe, e-mail: <co...@xml.apache.org>
 > For additional commands, e-mail: <co...@xml.apache.org>
 > 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


One XML --> Two XSL

Posted by Antonio Fletes <an...@telnor.com>.
Hello... Cocuneros...

Somebody know how to link two xsl files in one xml document ???

I would like to have two stylesheets  for one XML how do I do this ????

Thanks...




---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>