对于下面的xml文件,写一个什么样子的xsl文件,可以只把title的内容显示在IE浏览器上呢?
xml文件的内容:
<?xml version= "1.0 " standalone= "yes "?>
<root>
<caption>
<id> 23 </id>
<Title> title One </Title>
</caption>
<caption>
<id> 24 </id>
<Title> Title Two </Title>
</caption>
<caption>
<id> 25 </id>
<Title> title three </Title>
</caption>
</root>
------解决方案-------------------- <?xml version= "1.0 " encoding= "gb2312 "?>
<xsl:stylesheet version= "1.0 "
xmlns:xsl= "http://www.w3.org/1999/XSL/Transform ">
<xsl:template match= "/ ">
<xsl:for-each select= "/root/caption/Title ">
<xsl:value-of select= ". " /> <br/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>