我有如下的 XML 节点 -
<url title="Take the STARPLUS® for entertaiment" depth="2" is_external="False"/>
现在在 XSLT 中,我正在编写如下代码 -
<xsl:when test="contains(@title,'®')">
<!-- Make registration mark super scripted-->
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@title"/>
</xsl:otherwise>
</xsl:choose>
由于特殊字符,这里contains(@title,'®')
看起来不起作用。
有人可以帮我写这个 XSLT 检查。
注意-我不能在 XML 中进行编码或转义,因为它已经在系统中到位。
谢谢