Xml Xquery查找斜体的所有单词<;i>;

Xml Xquery查找斜体的所有单词<;i>;,xml,xquery,Xml,Xquery,我正在尝试编写一个XQuery,它将以斜体()形式返回xml的所有单词列表,如: <p>There is abundant evidence of a widened and deepened interest in <i>modern</i> science. How could it be <i>otherwise</i> when we <i>think</i> of the magnitude and

我正在尝试编写一个XQuery,它将以斜体()形式返回xml的所有单词列表,如:

<p>There is abundant evidence of a widened and deepened interest in <i>modern</i>
 science. How could it be <i>otherwise</i> when we <i>think</i> of the magnitude and the
 eventfulness of recent advances?</p>
有大量证据表明,人们对现代艺术的兴趣正在扩大和加深
科学。如果我们考虑到地震的震级和强度
最新进展的可能性

谢谢

let $p := 
<p>There is abundant evidence of a widened and deepened interest in 
<i>modern</i> science. How could it be <i>otherwise</i> when we <i>think</i> of the
magnitude and the eventfulness of recent advances?</p>
return $p/i

或者一些XQuery处理器将支持更简洁的
$p/i/string()

mm。。但是如果我必须从文档中加载?类似于:let$p:=doc(“/documents/chapter_02.xml”)//libro返回$p/ii如果处理器不支持$p/i/string(),那么它就不是XQuery处理器。我会使用$p//I/string(),因为标记几乎肯定允许嵌套格式副本标记。@MichaelKay好的,谢谢。也许我在想XPath1对XPath2?
for $i in $p/i
return string($i)