【发布时间】:2019-01-25 21:15:42
【问题描述】:
我使用的是 xsl 1.0 版本 我有这种xml 例如
<ss>'node1'</ss>
<ss1>'node2'</ss2>
值用单引号括起来。我想删除那些单引号 输出应该是
节点1 节点2
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*/text()">
<xsl:value-of select="translate(., '\"', '')"/>
</xsl:template>
我试过这段代码,但没有结果。任何建议都会有所帮助 谢谢
【问题讨论】: