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 命令的 XML 文档的创建者lang在标题为英文的销售材料(书籍、唱片、CD 等)中将属性留在标题之外,因此很难找到英文标题。我正在寻找一种方法来定位不包含xml:lang属性的结果。
lang
xml:lang
仅使用:
//title[not(@xml:lang)]
添加包含该not()函数的 where 子句,以限制您的结果:
not()
for $resulta in doc("test")//catalog/item/title where $resulta[not(@xml:lang)] (: this line :) return $resulta