XPath 逻辑表达式

XPath logical expression

我有一个简单的表达:

*[local-name() = 'test' and namespace-uri() = 'test1' or namespace-uri() = 'test2']"

这类似于:

 (x and y) or z

如何创建以下表达式:

x and (y or z)

我正在使用 XPath 2.0

尝试:

*[local-name() = 'test' and (namespace-uri() = 'test1' or namespace-uri() = 'test2')]"

*[local-name() = 'test' and namespace-uri() = ('test1','test2')]"