Clarification request for xsl:message

The XSLT 1.0 Recommendation says at 16.4:
"It is an error for output escaping to be disabled for a text node that is
used for something other than a text node in the result tree."

Should this apply to xsl:message? The discussion of xsl:message in Section
13 allows enough leeway that the output can be considered either a text
stream or something that could make use of a result tree fragment. If it's
a text stream, then the ability to disable output escaping would be highly
desirable. Consider this example:
<xsl:message>
   <xsl:text disable-output-escaping="yes">Error blah:
Re-run with the command
foo -option baz |&amp; mytracer
to capture diagnostic info.</xsl:text>
</xsl:message>
The above could be a piece of a stylesheet that runs in a controlled
intranet environment where users are known to have and use a command shell
that
has a "|&" facility. The stylesheet writer intends to produce a text stream
with that character sequence in it.

The cited sentence from 16.4 can be read two ways:
1. ...used for something other than (a text node in the result tree.)
2. ...used for (something other than a text node) [if output is] in the
result tree.
Please clarify, and issue an erratum if warranted.
.................David Marston

Received on Thursday, 26 April 2001 05:29:42 UTC