<studInfo>
<student ID="040310125">
<name>luliuyan</name>
<sex>男</sex>
<birthday>1985.8.19</birthday>
<score>100</score>
<skill>Java</skill>
<skill>Oracle</skill>
<skill>C Sharp</skill>
<skill>SQL Server</skill>
</student>
我如何用xslt取到 <student ID="040310125"> 中的ID的值呢
这个娶不到呢<xsl:value-of select="/studInfo/student[@ID]"/>
大家看看怎么取出这个属性值呢
<student ID="040310125">
<name>luliuyan</name>
<sex>男</sex>
<birthday>1985.8.19</birthday>
<score>100</score>
<skill>Java</skill>
<skill>Oracle</skill>
<skill>C Sharp</skill>
<skill>SQL Server</skill>
</student>
我如何用xslt取到 <student ID="040310125"> 中的ID的值呢
这个娶不到呢<xsl:value-of select="/studInfo/student[@ID]"/>
大家看看怎么取出这个属性值呢
<xsl:value-of select="@ID"/>
</xsl:template>
<xsl:value-of select="studInfo/student/@ID"/>