<xsd:element name="result" type="oval-def:EntityStateAnyType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The result entity specifies how to test objects in the result set of the specified SQL statement. Only one comparable field is allowed. So if the SQL statement look like 'SELECT name FROM ...', then a result entity with a value of 'Fred' would test the set of 'name' values returned by the SQL statement against the value 'Fred'.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="sqlsteresult" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="ind-def:sql_state/ind-def:result">
<sch:assert test="(@datatype='int' and (floor(.) = number(.))) or not(@datatype='int') or not(node())">
<sch:value-of select="../@id" /> - The datatype has been set to 'int' but the value is not an integer.</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
</xsd:element>
|