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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…