This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: message
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] message
- From: tcn at melvaig dot co dot uk (Trevor Nash)
- Date: Wed, 27 Jun 2001 15:05:47 GMT
- Organization: Melvaig Software Engineering Limited
- References: <3.0.1.32.20010627154206.00e0abc0@pe-pop01.iafrica.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
Karlo wrote:
>Hi, I am trying to use <xsl:message>Hello</xsl:message> Nothing is
>displayed. I tried to put this inbetween my actual html and still no luck,
>when I use <xsl:message terminate="yes">Hello</xsl:message> I get the
>output, together with a error in my ASP page.
>
>Any ideas ?
>
>thank
>
>Karlo
>
When you say 'nothing is displayed' it makes me think you are looking
in the generated web page. It is certainly not going to appear there.
What happens to an xsl:message is up to the XSLT processor and the
environment in which it runs. On a web server the message will either
end up in an error log somewhere or maybe even get thrown away. Do
not be misled by the XSLT spec when it says it might pop up a message
box - this is highly unlikely!
You get something when you say terminate="yes" because this causes the
transformation to fail, which the web server cannot fail to notice.
What are you trying to achieve? xsl:message is intended for things
like reporting logic errors in the stylesheet. This isn't really
appropriate in a web server environment, where you should be more
careful about what the user sees and how you sollect the necesary
diagnostics.
Regards,
Trevor Nash
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list