Complete XSLT Element Reference
The <xsl:message> element writes a message to the output. This element is primarily used to report errors.
This element can contain almost any other XSL element (<xsl:text>, <xsl:value-of>, etc.).
The terminate attribute gives you the choice to either quit or continue the processing when an error occurs.
| Attribute | Value | Description |
|---|---|---|
| terminate | yes no |
Optional. "yes" terminates the processing after the message is written to the output. "no" continues the processing after the message is written to the output. Default is "no". |
Check if artist is an empty string. If yes, we quit the XSL processor and display a message:
Complete XSLT Element Reference
Your message has been sent to W3Schools.