Suppose, for instance, that a Python programmer wants to write a script that automatically sends a message to her cell phone when the bus she takes to work rounds a particular corner.
The xsl:message element does not change the result tree produced by the XSLT stylesheet at all. It merely outputs a message somewhere the programmer can see it.
message 元素不改变 XSLT 样式表生成的结果树,仅仅输出一些消息让程序员看到。
3
While this is a step in the right direction, it's still a pretty useless message in terms of telling the user or a programmer working on the application what actually went wrong.