> > I just tried using xsl:message in Cocoon2 and got a hard-failure screen. > > Per the XSLT spec, isn't the message entered supposed to display in the > > browser or something? > > > > Tried this: > > <xsl:message terminate="yes"> > > <xsl:text>Error occurred - check your data!</xsl:text> > > </xsl:message> > > should be > > <xsl:message terminate="yes"> > Error occurred - check your data! > </xsl:message> > > Giacomo
That makes no difference, Giacomo. I think, here is only a problem of understanding, how xsl:message works. You will never see a message (from xsl:message) in the output-tree, so with Cocoon on the client's screen. This messages are for the backend. So you will find the messages in the logfiles as exceptions 'stylesheet directed termination'. That's correct. Since Cocoon 2 has more than one logfile, you have to look not only at cocoon.log, but at components.log too. And there is written your error-message - with or without <xsl:text>, this only differs in whitespace-handling, so using <xsl:text> is more "correct". Even a complex error-message using other xsl-statements is possible. Regards, Joerg --------------------------------------------------------------------- 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>