I'm doing for-each loop in the XSLT and it's returning me a long string. What I want to do is parse the string .
Here's the code.
<xsl:for-each select="/CAudioFile/CRI/PrivateData/PrivateData/DictionaryEntry">
<xsl:value-of select="Value" />
</xsl:for-each>
This is the string it's returning:
9702195481, 31201(CCC AGENT)09999051221399561274822396000069522
What I want to do is to get the first portion in one variable:
9702195481, 31201(CCC AGENT)
and replace the comma with a semicolon.
And the second string starts at the end of the first string and it's 20 characters. So it would return
09999051221399561274
I have tried substring, but I get compiler error.
Any suggestions on how I can accomplish this?
Here's the source xml and xslt file.
Here' the screen shot how it looks like now and the format I want.
I would actually prefer this to generate CSV however, my formatting is not correct that's why I stick with HTML.