xsl-list
[Top] [All Lists]

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

2010-04-07 09:15:08
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>