[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to output <xsl:message> to a log file

Subject: RE: How to output <xsl:message> to a log file
From: "Mathieu Sagot" <mathieu.sagot@xxxxxxxxxxxxxxx>
Date: Fri, 17 Jun 2005 17:32:08 +0100
mathieu sagot
Thanks Dan.

I am still confused on what is exactly the standart output (or error
output) ?
I guess if I was using the XSL processor of a webbrowser, the message
would be displayed on the screen am I right ?

But because of calling the transform thru classi asp (MSXML2) is there
any way of even seeing this error output ?

Thank you

Mathieu Sagot

-----Original Message-----
From: Dan [mailto:dan@xxxxxxxxxxxxxxxx]
Sent: 17 June 2005 16:13
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  How to output <xsl:message> to a log file

> I am trying to build some error handling wich would flag the errors
> but would still carry on doing the transformation.
> I was reading that <xsl:message terminate="no"> could output the
> message to a log file, or store it in the message buffer.

<xsl:message terminate="no"> is certainly a good way to output error
messages without stopping the transformation.

<xsl:message> simply goes to standard out (or standard error); I don't
know if there's a way to redirect error messages using MSXML2. But
Michael Kay's book has a warning that you might find interesting:

"Microsoft's MSXML3 parser currently ignores <xsl:message
terminate="no"> so the message is not reported anywhere. If
terminate="yes", it generates an error, which can be handled through the
script on the HTML page that invoked the transformation."

--
  It's not surprising that the real world doesn't always conform
  itself to our words. What's surprising is the number of people
  who proclaim that reality is wrong "by definition".

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.