Html 无法在XSLT转换中创建带有#char的href链接
我在使用href:创建内部链接时遇到char“#”问题,因此我的代码是:Html 无法在XSLT转换中创建带有#char的href链接,html,string,xslt,char,href,Html,String,Xslt,Char,Href,我在使用href:创建内部链接时遇到char“#”问题,因此我的代码是: <xsl:template match="content"> <p><h3><a> <xsl:attribute name="href"> <xsl:value-of select="#../@number"/> </xsl:attribut
<xsl:template match="content">
<p><h3><a>
<xsl:attribute name="href">
<xsl:value-of select="#../@number"/>
</xsl:attribute>
<xsl:value-of select="."/>
</a></h3></p>
</xsl:template>
我也不知道这段代码有什么问题:
select=“#/@number”
不是#
应该在
位之外的文本值吗?是的,当然对我来说太晚了。谢谢你的建议,解决了。