[英]xQuery IF condition does not work properly
我正在尝试这种情况,但是它总是通过其他方式退出,您能帮我吗? 谢谢
if ( $orderLine[osm:ProductSpecification/text()="X"] and osm:ExtensibleAttributes[osm:Name = "Y" or osm:Name = "Z"] and osm:NewValue/text() = "A" )
then
<AccessType>X</AccessType>
else
<AccessType>{$attribute/osm:NewValue/text()}</AccessType>
)
我已经解决了更改过滤器范围的问题:
if ( $orderLine[osm:ProductSpecification/text()="X" and osm:ExtensibleAttributes[osm:Name = "Y" or osm:Name = "Z"] and osm:NewValue/text() = "A" ]])
then
<AccessType>X</AccessType>
else
<AccessType>{$attribute/osm:NewValue/text()}</AccessType>
)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.