Section 52.3 Emitting a Message from a Stylesheet
An
<xsl:message> begins with the token that names its severity: PTX:DEBUG, PTX:INFO, PTX:FALLBACK, PTX:WARNING, PTX:ERROR, PTX:BUG, or PTX:FATAL. A fatal message additionally carries terminate="yes". Deprecations are the one exception: they are emitted through a shared template and carry PTX:DEPRECATE, which is treated as a warning.
The Python layer reads the leading token of each stylesheet message and re-emits it at the corresponding severity. A message whose token is malformed—a stray space, the wrong case—is itself reported as a bug, so an authoring slip is surfaced rather than silently demoted.
