10.3. Generating Error Messages and Logs

Error messages and log files are particularly important to programmers who need to debug or track changes in the processes of their code. XSLT provides a method, using <xsl:message>, to generate logs or messages, whether they are stored as files or sent to the screen as message windows, based on processor-specific implementations.

10.3.1. The <xsl:message> Instruction Element

The <xsl:message> instruction element is a way for the XSLT processor to communicate “outside” of itself and outside of the XSLT stylesheet being processed. It has one optional attribute, terminate, with a possible value of yes or no, as shown in the following element model definition. The content of the <xsl:message> element is a ...

Get XSLT and XPATH: A Guide to XML Transformations now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.