Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/string/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 无法在XSLT转换中创建带有#char的href链接_Html_String_Xslt_Char_Href - Fatal编程技术网

Html 无法在XSLT转换中创建带有#char的href链接

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

我在使用href:创建内部链接时遇到char“#”问题,因此我的代码是:

     <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”

不是
#
应该在
位之外的文本值吗?是的,当然对我来说太晚了。谢谢你的建议,解决了。