Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/87.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 XSL如何将标记放入标记中_Html_Xml_Xslt_Hta - Fatal编程技术网

Html XSL如何将标记放入标记中

Html XSL如何将标记放入标记中,html,xml,xslt,hta,Html,Xml,Xslt,Hta,好的,我有一个这样的代码 <a href="ApplicationTesterResult_APPSRV.hta"> <xsl:value-of select='COMPONENT_NAME'/> </a> 你不能把标签放在标签里面。您可以使用属性值模板,使用{}: <a href="ApplicationTesterResult_{COMPONENT_NAME}.hta"> <xsl:value-of select="COM

好的,我有一个这样的代码

<a href="ApplicationTesterResult_APPSRV.hta">

<xsl:value-of select='COMPONENT_NAME'/> 

</a>

你不能把标签放在标签里面。您可以使用属性值模板,使用
{}

<a href="ApplicationTesterResult_{COMPONENT_NAME}.hta">
    <xsl:value-of select="COMPONENT_NAME"/>
</a>

或者,您可以专门设置属性:

<a>
    <xsl:attribute name="href">
        <xsl:value-of select="concat('ApplicationTesterResult_', 
            COMPONENT_NAME, '.hta')"/>
    </xsl:attribute>
    <xsl:value-of select="COMPONENT_NAME"/>
</a>


您不能将标签放入标签中。您是否尝试过
href=“ApplicationTestResult”{COMPONENT\u NAME}.hta“
?或者,您可以使用串联值定义变量,并使用
设置属性。非常感谢!真管用!正确使用术语“标签”做得很好。。。
<a>
    <xsl:attribute name="href">
        <xsl:value-of select="concat('ApplicationTesterResult_', 
            COMPONENT_NAME, '.hta')"/>
    </xsl:attribute>
    <xsl:value-of select="COMPONENT_NAME"/>
</a>