我有以下xml:
<Books>
<Book author="John" country="Norway"/>
<Book author="Paul" />
<Book author="Steve" country="England"/>
</Books>
<Books>
<Book author="George" />
<Book author="Thomas" country="Germany"/>
</Books>
我想在每个“书籍”元素中找到属性“国家”的位置。
<Books>
<Book author="John" country="Norway"/> --1
<Book author="Paul" />
<Book author="Steve" country="England"/> --2
<Book author="Bob" country="Denmark"/> --3
</Books>
<Books>
<Book author="George" />
<Book author="Thomas" country="Germany"/> --1
</Books>
我们可以为此使用哪个 XPath 函数?