Bookmark and Share Share

<display>

This statement sends a debugging message to the standard output (both log and console) when the mashup script is processed. Messages can contain both static and dynamic content.

Can Contain Empty
Allowed In mashup, else, elseif, for, foreach, if, macro, operation, sequence, while,

Attributes

Name Required Description
message yes

The static portion of a debugging message for this mashup script.

expr  

An optional XPath 2.0 expression to provide a dynamic value as part of a debuggning message for this mashup script. You cannot have both an expression and a variable in a debugging message.

variable  

An optional variable to provide a dynamic value as part of a debuggning message for this mashup script. You cannot have both an expression and a variable in a debugging message.

<display> Examples

You define static text for the message in the message attribute. You can also optionally include a dynamic value at the end of the message with either the expr attribute and an XPath 2.0 expression or with the variable attribute which points to a variable. For example:

<display message="testing debugging messages"/> 
<display message="filtered result = " variable="$result"/> 
<display message="sum = " expr = "$firstNum + $secondNum"/>

If you want to turn off debug messages for production, enclose the <display> commands in XML comments, such as:

<!-- <display message="debug message"/> -->

Or remove them from production mashup scripts.