XML 文件如下所示:-
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="final.xsl"?>
<root>
<child1 entity_id = "1" value= "Asia">
<child2 entity_id = "2" value = "india">
<child3 entity_id = "3" value = "Gujarat">
<child5 entity_id = "5" value ="Rajkot"></child5>
</child3>
<child4 entity_id = "4" value = "Rajshthan">
<child6 entity_id = "6" value = "Ajmer"></child6>
</child4>
</child2>
</child1>
</root>
这是我的 XSLT 代码:-
<xsl:for-each select="//child2">
<xsl:value-of select="@value" />
</xsl:for-each>
这是我的输出:-
india
我想要 html 文件中的这个输出,它怎么可能请帮我解决这个问题