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.
我对 XQuery 进行了一个小测试,但我没有太多的语言经验,其中一个问题是
<P>显示将显示标题行为“原子世界”的章节的第二段 ( ) 的 XQuery 。
<P>
文件的结构是/topic/topic[1]/title[1]/ph[1]
/topic/topic[1]/title[1]/ph[1]
到目前为止我所拥有的是
for $ph in doc("chapter_09.xml")//topic where $ph/topic/* [ph = "THE WORLD OF ATOMS"] return $ph
doc("chapter_09.xml")/topic/topic[title eq "THE WORLD OF ATOMS"]/p[1]