RE: Using xsl:message and Cocoon

2007-07-14 Thread Geert Josten
Hi,

We have been using a patch for the TraxTransformer to get a more
sensible error message rather that just 'Stylesheet directed
termination':

} catch (XSLTProcessorException se) {
//throw new ProcessingException("Unable to get transformer
handler for " + this.inputSource.getURI(), se);
/* [GJ] Patched to get sensible Exception messages */
if (se.getCause() == null) {
throw new ProcessingException("Invalid stylesheet " +
this.inputSource.getURI() + " : " + se.getMessage());//, se);
} else {
throw new ProcessingException("Invalid stylesheet " +
this.inputSource.getURI() + " : " + se.getCause().getMessage());//,
se.getCause());
}
}

It should be located near the end of the setup function.

Note that this patch was applied to Cocoon 2.1.4. Perhaps it is included
in the most recent version, I haven't checked.

HTH,
Geert 

> 
   
 
Drs. G.P.H. Josten
Consultant
 
 

Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl
KvK 27164984


De informatie - verzonden in of met dit emailbericht - is afkomstig van 
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit 
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit 
bericht kunnen geen rechten worden ontleend.
 

> From: Jonathan Hipkiss [mailto:[EMAIL PROTECTED] On 
> Behalf Of Jonathan Hipkiss
> Sent: vrijdag 13 juli 2007 18:07
> To: users@cocoon.apache.org
> Subject: Re: Using xsl:message and Cocoon
> 
> I don't know if this is any help but we use  terminate="yes" 
>  >blah and then add in the sitemap:
> 
>   
>   
>
> 
> This way we can catch failing templates gracefully and 
> display some breakpoint.
> 
> Jonathan
> 
> Andreas Kuehne wrote:
> > Thanks for your final conclusion. Surely will save valuable 
> time for many other developers !
> >
> > There are too few postings of final outcomes to the list, 
> especially in case of 'no solution'. 
> >
> > Greetings
> >
> > Andreas
> >
> > - Original Message 
> > From: Steven D. Majewski <[EMAIL PROTECTED]>
> > To: users@cocoon.apache.org
> > Sent: Thursday, July 12, 2007 5:55:10 PM
> > Subject: Re: Using xsl:message and Cocoon
> >
> >
> > As the OP in that thread, I should note that despite Mark's help, I 
> > was still never able to find a trace of the xsl:message output.
> > However, I gave up and tried some alternative ways of debugging 
> > instead, so I didn't spend a lot of time trying to figure 
> out why it 
> > didn't work for me. Perhaps a xalan vs saxon issue?
> >
> > -- Steve Majewski
> >
> >
> > On Jul 11, 2007, at 8:09 PM, Joerg Heinicke wrote:
> >
> >   
> >> On 05.07.2007 11:43, Mike Dawson wrote:
> >>
> >> 
> >>> I have a few XSL's I'm attempting to do some basic 
> debugging on and 
> >>> would like to use just plain old xsl:message to get an idea about 
> >>> certain variables through the execution of the XSL.
> >>>   
> >>> Unfortunately after grepping the logs directory there was 
> no sign of 
> >>> the string I had in xsl:message - and no sign of core.log
> >>>   
> >>> Any help getting to xsl:message would be most appreciated.
> >>>   
> >> There is a thread from the beginning of this year [1], especially 
> >> Mark Lundquist's message [2] explains where the message goes to.
> >>
> >> Joerg
> >>
> >> [1] http://marc.info/?l=xml-cocoon-users&m=116983397905795&w=4
> >> [2] http://marc.info/?t=11696104453&r=1&w=4
> >>
> >> 
> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >> 
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >   
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: howto call xsp from xsp

2007-07-14 Thread robf

Grzegorz Kossakowski wrote:

robf pisze:

Hi ,


Hi


At some point in an xsp I want to include the
resultset from calling another xsp , just like it
is possible in xslt's:




http://apache.org/xsp";>

 
   ...
 

 ...
 
 

 
 





What about using XInclude transformer: 
http://cocoon.apache.org/2.1/userdocs/xinclude-transformer.html ?



The problem with a transformer is that it is "executed" after current xsp.
In an xsp I want the following:

http://apache.org/xsp";>
...
 
   
  select * from table where 
   
   
  
 
 column="XYZ"/>/tagx"/>


   



Rob



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with Cocoon 2.2.x

2007-07-14 Thread Werner Masik

Am Fr, 13.07.2007, 17:42, schrieb Grzegorz Kossakowski:
> werner pisze:
>>> Try to remove cocoon artifacts and run build again. I hope it will
>>> help.
>>>
>>
>> Still have the same error.
>
> What's your Maven and Java version? What's your OS? How do you build and
> run Cocoon? I need this info in order to try to reproduce your problem.

Debian GNU/Linux Etch
Java 1.5
Maven 2.0.7

I followed the instructions from the README for the build. As I'm not in
my office now, I cannot tell what I exactly did. I just remember that I
went to the cocoon-webapp directory and tried to run cocoon with 'mvn
jetty:run', because I wanted to see if the samples already work.
I also tried the first getting started tutorial about creating a block
(http://cocoon.zones.apache.org/dev-docs/2.2/1159_1_1.html). And that did
actually work.

>
> --
> Grzegorz Kossakowski
> http://reflectingonthevicissitudes.wordpress.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Werner Masik

Fischer & Masik OEG
GEFi Informationstechnik und Datenservice
Reisenbauerring 5/1/12
A-2351 Wiener Neudorf

oder:
Mariahilfer Straße 37-39
im Fachverband der Elektro- und Elektronikindustrie
A-1060 Wien

Tel: 02236 / 304 224
Fax: 02236 / 304 278
Mobil: 0676 528 97 57

Internet: http://www.gefi.at
e-mail:
persönlich: [EMAIL PROTECTED]
allgemein: [EMAIL PROTECTED]


*
Confidentiality Notice
*
The information contained in this Email, and any attachments, is
intended for the named recipients only. It may contain confidential
and/or privileged information. If you are not the intended
recipient, you must not copy, distribute, or take any action in
reliance on it. Any views expressed do not necessarily reflect the
views of the company.

If you receive this Email by mistake, please advise the sender by
using the reply facility in your Email software and then delete it.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Help with Cocoon 2.2.x

2007-07-14 Thread Grzegorz Kossakowski

Werner Masik pisze:


Debian GNU/Linux Etch
Java 1.5
Maven 2.0.7

I followed the instructions from the README for the build. As I'm not in
my office now, I cannot tell what I exactly did. I just remember that I
went to the cocoon-webapp directory and tried to run cocoon with 'mvn
jetty:run', because I wanted to see if the samples already work.
I also tried the first getting started tutorial about creating a block
(http://cocoon.zones.apache.org/dev-docs/2.2/1159_1_1.html). And that did
actually work.


If instructions included in the tutorial work it must be some Cocoon block causing problems. It's crucial now to answer if you used 
allblocks profile or not.


--
Grzegorz Kossakowski
http://reflectingonthevicissitudes.wordpress.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]