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>
を使用する場合、最初のノードのコンテンツを選択してから、ボーナスとして 2 番目のノード<xsl:value-of>を選択するにはどうすればよいですか?<a><a>
<xsl:value-of>
<a>
使用する
/foo/a[1]
または(ボーナス):
/foo/a[2]