xsl:textLiteral text (other than whitespace) must not sit directly inside an xsl:
instruction. Wrap it in xsl:text. The text can also be wrapped in
xsl:variable, xsl:param, xsl:with-param, xsl:attribute,xsl:comment,
xsl:processing-instruction and xsl:message. You can also use text inside
html-tags or in other non-XSL elements.
Incorrect:
<xsl:if test=".!=''">
Hello!
</xsl:if>
Correct:
<xsl:if test=".!=''">
<xsl:text>Hello!</xsl:text>
</xsl:if>
or:
<xsl:variable name="Lord Byron">
1788-1824
</xsl:variable>
or:
<xsl:param name="William Shakespeare">
1564-1616
</xsl:param>
or:
<xsl:with-param name="Robert Burns">
1759-1796
</xsl:with-param>
or:
<xsl:attribute-set name="font">
<xsl:attribute name="fname">
Arial
</xsl:attribute>
</xsl:attribute-set>
or:
<xsl:comment>
Text of comment.
</xsl:comment>
or:
<xsl:processing-instruction name="xml-stylesheet">
href="style.css" type="text/css"
</xsl:processing-instruction>
or:
<xsl:message terminate="yes">
text of message
</xsl:message>
or:
<ul>
<li>William Shakespeare</li>
<li>Robert Burns</li>
<li>Lord Byron</li>
</ul>
or:
<ex:note xmlns:ex="https://example.com">
some text
</ex:note>