Read XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition Online
Authors: Michael Kay
Position
Attributes
Name | Value | Meaning |
select optional | XPath Expression | The expression is evaluated to produce the content of the message. |
terminate optional | Attribute value template returning yes or no | The value yes indicates that processing is terminated after the message is output. The default is no . |
Content
A sequence constructor. There is no requirement that this should only generate text nodes; it can produce any XML fragment. What happens to any markup, however, is not defined in the standard.
This means that writing
data()
or
string()
.
Unlike other elements that allow a
select
attribute and a sequence constructor, in this case they are not mutually exclusive. The results of evaluating the
select
expression and the results of evaluating the sequence constructor are concatenated to form a single sequence.
Effect
The
select
expression added at the front) to construct a new document node, sends the constructed document to an implementation-defined destination, and returns an empty sequence.
Unlike
If the
terminate
attribute is omitted, the value
no
is assumed.
The contents of the constructed document (which will often be a simple text node) are output where the user can be expected to see them. The XSLT specification does not actually say where it goes; this is implementation-dependent, and it might be determined by configuration options. The specification suggests an alert box on the screen and a log file as two possible destinations.
If the
terminate
attribute has the value
yes
, execution of the stylesheet is abandoned immediately. In this situation (as indeed after any runtime error) the content of any output files is undefined.