【发布时间】:2019-10-29 10:24:47
【问题描述】:
我想选择多个节点,但是xsl:for-each 方法的select 只检索到第一个..
这是我的代码:
<div STYLE="height=100%;width=100%;overflow:visible;" id="VIEW1">
<table>
<tbody>
<xsl:for-each select="//FUNCTION|PROPERTY[not(@toc) or @toc!='false']|CLASS|EVENT">
<xsl:sort select="@name"/>
<tr>
<td>
<a> <xsl:attribute name="HREF">f_content.html#<xsl:value-of select="user:getId(.)"/></xsl:attribute> <xsl:attribute name="TARGET">FRAMECONTENT</xsl:attribute><xsl:value-of select="@name"/></a>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
问题就在这里,它只选择了所有的FUNCTION 节点。 :
<xsl:for-each select="//FUNCTION|PROPERTY[not(@toc) or @toc!='false']|CLASS|EVENT">
如何更改此行以检索所有其他节点? 再次感谢!
【问题讨论】: