Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml 使用架构1.1断言错误_Xml_Xsd_Assertions - Fatal编程技术网

Xml 使用架构1.1断言错误

Xml 使用架构1.1断言错误,xml,xsd,assertions,Xml,Xsd,Assertions,我在创建模式时遇到了问题,如果有人可以帮忙的话。我正在使用OxygenXML编辑器。所以问题是我有一个模式声明,如下所示: <xs:attribute name="output" type="xs:ID" use="optional"/> <xs:assert test="(@output ne 'result') and (@output ne 'isTimedOut')"/> 您可以检查输出属性是否不存在或是否与不允许的值不同: <xs:assert tes

我在创建模式时遇到了问题,如果有人可以帮忙的话。我正在使用OxygenXML编辑器。所以问题是我有一个模式声明,如下所示:

<xs:attribute name="output" type="xs:ID"  use="optional"/>
<xs:assert test="(@output ne 'result') and (@output ne 'isTimedOut')"/>

您可以检查输出属性是否不存在或是否与不允许的值不同:

<xs:assert test="
     not(@output) or 
     ((@output ne 'result') and (@output ne 'isTimedOut'))"/>

问候,, 乔治

<xs:assert test="
     not(@output) or 
     ((@output ne 'result') and (@output ne 'isTimedOut'))"/>