I have a string like
*this is text1 * this is text2 *this is text3
I want the output by spliting the text using * in my pdf like
this is text1
this is text2
this is text3
my text coming in @value of xslt like
<fo:block linefeed-treatment="preserve" >
<xsl:value-of select="@key"/>
</fo:block>
<fo:block linefeed-treatment="preserve" >
<xsl:value-of select="@value"/>
</fo:block>
<fo:block linefeed-treatment="preserve" >
<xsl:text>
</xsl:text>
</fo:block>
</fo:block>
How can I split the string produce the output. Please suggest. I'm using xsl 1.0
tokenize()
function. If you can't use XSLT 2.0, then you will either need to write a template yourself (which might not be trivial as you are new to XSLT) or use extensions such as EXSLT. In the linked question you have examples of all those alternatives: EXSLT (solution using node-set and links to examples with tokenize), XSLT 2.0 and even a full named template. If they are confusing, you should read a bit about named templates and extensions. – helderdarocha