<xsl:if test = "ddd[not(asdfasd = 'afda\'sdfs')]">
这种写法不是格式良好的
只能这样写
<xsl:if test = 'ddd[not(asdfasd = "afda'sdfs")]'>
但是如果我需要查找包含了双引号的字符串的时候又会出现问题
而且我使用"表示双引号和使用'表示单引号也不行
请问这种情况该如何处理?
3 个解决方案
#1
xsl:if test = "ddd[not(asdfasd = 'afda'sdfs')]">
#2
net_lover(孟子E章),我试了一下这个方法也有问题,不行
#3
xsl:if test = "ddd[not(asdfasd = 'afda\'sdfs')]">
xsl:if test = "ddd[not(asdfasd = "afda'sdfs")]">
xsl:if test = "ddd[not(asdfasd = 'afda"sdfs')]">
xsl:if test = "ddd[not(asdfasd = "afda'sdfs")]">
xsl:if test = "ddd[not(asdfasd = 'afda"sdfs')]">
#1
xsl:if test = "ddd[not(asdfasd = 'afda'sdfs')]">
#2
net_lover(孟子E章),我试了一下这个方法也有问题,不行
#3
xsl:if test = "ddd[not(asdfasd = 'afda\'sdfs')]">
xsl:if test = "ddd[not(asdfasd = "afda'sdfs")]">
xsl:if test = "ddd[not(asdfasd = 'afda"sdfs')]">
xsl:if test = "ddd[not(asdfasd = "afda'sdfs")]">
xsl:if test = "ddd[not(asdfasd = 'afda"sdfs')]">