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

Re: Where does <xsl:message> output go?

Subject: Re: Where does <xsl:message> output go?
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Wed, 07 Apr 2010 16:14:43 +0200
Re:  Where does <xsl:message> output go?
Costello, Roger L. wrote:

I know that when I run an XSLT transform from the DOS command line,
the contents of <xsl:message> goes to the command line.

If I invoke an XSLT transform using, say, a Java program, where does
the <xsl:message> content go? If there are multiple <xsl:message>
elements, does their content all go to the same place? Where? Is it
the same for every XSLT processor?

I don't think so, it will depend on the API of the XSLT processor you use and how you set up your application to receive those messages.
Saxon 9.2 has this documentation:
http://www.saxonica.com/documentation/xsl-elements/message.html


.NET's XslCompiledTransform has this event
http://msdn.microsoft.com/en-us/library/system.xml.xsl.xsltargumentlist.xsltmessageencountered(v=VS.90).aspx

to show just two examples of how processors allow you to handle the messages.


What happens to the in-memory result tree when the XSLT processor
encounters an <xsl:message terminate="yes"> element?

Transformation fails with terminate="yes".


--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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.