I have the following tokenizing template implemented in my XSLT.
<xsl:template match="sporting_arena/text()[normalize-space()]" name="split">
<xsl:param name="pText" select="."/>
<xsl:if test="normalize-space($pText)">
<li>
<xsl:call-template name="replace">
<xsl:with-param name="pText" select="substring-before(concat($pText, ';'), ';')"/>
</xsl:call-template>
</li>
<xsl:call-template name="split">
<xsl:with-param name="pText" select="substring-after($pText, ';')"/>
</xsl:call-template>
</xsl:if>
<xsl:template name="replace">
<xsl:param name="pText"/>
<xsl:if test="normalize-space($pText)">
<xsl:value-of select="substring-before(concat($pText, '*'),'*')"/>
<xsl:if test="contains($pText, '*')">
<br/>
<xsl:call-template name="replace">
<xsl:with-param name="pText" select="substring-after($pText, '*')"/>
</xsl:call-template>
</xsl:if>
</xsl:if>
</xsl:template>
I'm wondering if it is possible to add to this tokenizing system the ability to bold or italicize certain words in my XML element text using the same delimiter approach with a delimiter on each side of a word to indicate either bold or italicized.
XML Example with current system:
<sporting_arena>
Adelaide Oval: An awesome new bike and truck that drove up* a hill and never came back.;
The delimiter I choose here * places this text on a new line and now I'm;
On a new dot point.
</sporting_arena>