I tried to substring data with single quote in XSLT:
String : DataFromXML:'12345'
expected Result: 12345
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:')"/>
Result: '12345'
i tried below code
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:'')"/>
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:'')"/>
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:'')"/>
Error:
String literal was not closed 'DataFromXML:'--->'<---
See Question&Answers more detail:os