<p>I have an xslt sheet with some text similar to below:</p>

<pre><code>&lt;xsl:text&gt;I am some text, and I want to be bold&lt;/xsl:text&gt;
</code></pre>

<p>I would like some text to be bold, but this doesn't work.</p>

<pre><code>&lt;xsl:text&gt;I am some text, and I want to be &lt;strong&gt;bold&lt;strong&gt;&lt;/xsl:text&gt;
</code></pre>

<p>The deprecated b tag doesn't work either. How do I format text within an xsl:text tag?</p>

[{'answer_id': 78904, 'author': 'aku', 'author_id': 1196, 'author_profile': 'https://Stackoverflow.com/users/1196', 'pm_score': 3, 'selected': False, 'text': '<p>Try this:  </p>\n\n<pre><code>&lt;fo:inline font-weight="bold"&gt;&lt;xsl:text&gt;Bold text&lt;/xsl:text&gt;&lt;/fo:inline&gt;\n</code></pre>\n\n<ul>\n<li><a href="http://www.ecrion.com/Support/Resources/XSL-FOTutorial/Inline.xml.html" rel="noreferrer">XSL-FO Tutoria: Inline Text\nFormatting</a></li>\n<li><a href="http://www.w3schools.com/xslfo/obj_inline.asp" rel="noreferrer">XSL-FO inline Object</a></li>\n</ul>\n'}, {'answer_id': 78917, 'author': 'David Medinets', 'author_id': 219658, 'author_profile': 'https://Stackoverflow.com/users/219658', 'pm_score': 2, 'selected': False, 'text': '<blockquote>\n  <p>&lt;xsl:text <strong>disable-output-escaping="yes"</strong>&gt;I want to be &lt;strong&gt;bold&lt;strong&gt; &lt;/xsl:text&gt;</p>\n</blockquote>\n'}, {'answer_id': 78927, 'author': 'Joe Skora', 'author_id': 14057, 'author_profile': 'https://Stackoverflow.com/users/14057', 'pm_score': -1, 'selected': False, 'text': '<p>XSL-FO formatting should be able to do that, see the W3Schools <a href="http://w3schools.com/xslfo/default.asp" rel="nofollow noreferrer">tutorial</a>.</p>\n'}, {'answer_id': 80522, 'author': 'jelovirt', 'author_id': 2679, 'author_profile': 'https://Stackoverflow.com/users/2679', 'pm_score': 4, 'selected': True, 'text': "<p>You don't. <code>xsl:text</code> can only contain text nodes and <code>&lt;strong&gt;</code> is an element node, not a string that starts with less-than character; XSLT is about creating node trees, not markup. So, you have to do </p>\n\n<pre><code>&lt;xsl:text&gt;I am some text, and I want to be &lt;/xsl:text&gt;\n&lt;strong&gt;bold&lt;strong&gt;\n&lt;xsl:text&gt; &lt;/xsl:text&gt;\n</code></pre>\n"}, {'answer_id': 6410661, 'author': 'Pavan', 'author_id': 732642, 'author_profile': 'https://Stackoverflow.com/users/732642', 'pm_score': 0, 'selected': False, 'text': '<p>The answer for this depends on how much formatting is needed in the content and also where you get content from.\nIf you have less content and less formatting then you can use what jelovirt suggested</p>\n\n<pre><code>&lt;xsl:text&gt;I am some text, and I want to be &lt;/xsl:text&gt;\n&lt;strong&gt;bold&lt;strong&gt;\n&lt;xsl:text&gt; &lt;/xsl:text&gt;\n</code></pre>\n\n<p>However if your content has large formatting then what David Medinets suggests is better way to do it</p>\n\n<pre><code>&lt;xsl:text disable-output-escaping="yes"&gt;\n</code></pre>\n\n<p>We have some instructions to print on UI. The set of instructions is huge and of course we read those from XML file.</p>\n\n<p>In such cases the above method is easy to use and maintain too. That is because the content is provided by technical writers. They have no knowledge of XSL. They know using HTML tags and they can easily edit the XML file.</p>\n'}, {'answer_id': 59292527, 'author': 'Ricardo PSilva', 'author_id': 3179207, 'author_profile': 'https://Stackoverflow.com/users/3179207', 'pm_score': 0, 'selected': False, 'text': '<p>the correct way to use the strong tag is </p>\n\n<pre><code>&lt;strong&gt;This text is strong&lt;/strong&gt;\n</code></pre>\n\n<p>not <code>&lt;strong&gt;</code> at the end</p>\n\n<p>Here is the information reference: <a href="https://www.w3schools.com/html/html_formatting.asp" rel="nofollow noreferrer">https://www.w3schools.com/html/html_formatting.asp</a></p>\n'}]
['https://Stackoverflow.com/questions/78884', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/5989/']