Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个如下所示的 XML 文档:
<foo> <a>...</a> <a>...</a> <b>...</b> </foo>
使用时<xsl:value-of>,如何选择第一个<a>节点的内容,然后选择第二个<a>节点作为奖励?
<xsl:value-of>
<a>
采用
/foo/a[1]
或(奖金):
/foo/a[2]