<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"/>
Output always appears in the console. However, logging the results of <display> is controlled by the logging level of the application server hosting the Presto Server. Output for <display> is only logged if the level is INFO or lower.
To force logging for <display> statements, add the console attribute:
<display console="true" 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.
Working Samples
Most of the sample mashups for
Presto use the <display> statement. See
Mashup Samples for a list of
Presto mashup samples and where to find them.