以下是 XML 文件 -
<Chapters>
<Chapter n="1">
<Desc>....</Desc>
<References>
<BookRef>HTML : in 21 Days</BookRef>
<Page>12, 13</Page>
<BookRef>HTML : Unlimited</BookRef>
<Page>21, 22</Page>
<BookRef>The Complete Reference - HTML</BookRef>
<Page>32-35</Page>
</References>
</Chapter>
<Chapter n="2">
<Desc>....</Desc>
<References>
<BookRef>HTML : in 21 Days</BookRef>
<Page>52, 53</Page>
<BookRef>The Complete Reference - HTML</BookRef>
<Page>132-145</Page>
<BookRef>The Complete Reference - Javascript</BookRef>
<Page>132-145</Page>
</References>
</Chapter>
</Chapters>
我正在尝试列出 - 所有包含的HTML
单词使用
/Chapters/Chapter/References[BookRef contains text 'HTML']/BookRef
但是一切都被显示出来了……!!检索相同内容的 XQuery 将是什么?