Instead of returning those elements, suppose you want something more identifiable; perhaps the title of each CD, stored in the title element.
这里不返回这些元素,我们假设需要某种更容易识别的内容,比如存储在title元素中的每张CD标题。
So where, in XPath, you'd apply a path like /cds/cd[title='Revolver'] to a specific document, you can indicate the document in your actual XQuery using the doc() function.
前面我们已经将路径 /cds/cd[title='Revolver'] 应用到了一个特定的文档,但在XQuery 中可使用doc() 函数指定文档。
From the listing page, the end user can sort the CD listing by title or by artist.
从这个页面中,最终用户可以根据标题或者艺术家对CD清单进行排序。
From the listing page, the end user can sort the CD listing by title or by artist.
从这个页面中,最终用户可以根据标题或者艺术家对CD清单进行排序。
应用推荐