【发布时间】:2018-10-30 15:58:47
【问题描述】:
我不明白如何找到一个搜索“多值”属性的属性。
我会写一个来自 W3school 的例子
[链接:https://www.w3schools.com/xml/xpath_examples.asp]
<bookstore>
<book category="web">
<title lang="en">XQuery Kick Start</title>
<author>James McGovern</author>
<author>Per Bothner</author>
<author>Kurt Cagle</author>
<author>James Linn</author>
<author>Vaidyanathan Nagarajan</author>
<year>2003</year>
<price>49.99</price>
</book>
</bookstore>
例如,我怎样才能得到使用字符串<xsl:value-of "/bookstore/book[author = James McGovern]/title"/> 搜索的标题。
有人可以帮助我吗?我是使用 XML 和 XSL 的新手。
谢谢。
【问题讨论】: