Saturday, February 25, 2012

message output from XSLT XML Task

Where does output from <xsl:message> stylesheet elements go? It's not in the Progress or Output window, and there doesn't seem to be a property that controls the destination for messages.

Kevin Rodgers wrote:

Where does output from <xsl:message> stylesheet elements go? It's not in the Progress or Output window, and there doesn't seem to be a property that controls the destination for messages.

I have the same question.

The ability to see the output from <xsl:message> would partially make up for the inability to set breakpoints in XSLT.

|||

Hi Kevin,

Interestingly enough, they go to standard output, which is really only visible if you're running dtexec directly. This is the default of the underlying System.Xml.Xsl engine, which the XML Task's XSLT operation is based on.

-David

|||

David, as I'm sure you know, it's possible for code to capture the output ot <xsl:message/>, and to send the output whereever it likes.

Good tip on standard output, though.

No comments:

Post a Comment