我尝试在 XSLT 中使用单引号对数据进行子串化:
String : DataFromXML:'12345'
预期结果:12345
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:')"/>
结果:'12345'
我试过下面的代码
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:'')"/>
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:'')"/>
<xsl:value-of select="substring-after('$datafromxml','DataFromXML:'')"/>
错误:
String literal was not closed 'DataFromXML:'--->'<---