如何理解這個代碼塊,如何理解這個XSL模板選擇
<xsl:for-each select="testsuite">
<xsl:apply-templates select="."/>
</xsl:for-each>
使用下,
<xsl:template match="testsuites">
<table border="1" width="100%">
<tr bgcolor="#9acd32">
<th align="left">module</th>
<th align="left">tests</th>
<th align="left">time</th>
</tr>
<tr>
<td><xsl:value-of select="@name"/></td>
<td><xsl:value-of select="@tests"/></td>
<td><xsl:value-of select="@time"/></td>
</tr>
</table>
<br/>
<xsl:for-each select="testsuite">
<xsl:apply-templates select="."/>
</xsl:for-each>
</xsl:template>
什麼模板<xsl:apply-templates/>
申請,根據上面的代碼? 你能提供關於這個問題的任何線索嗎?
我會高度評價你的幫助。