This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
These test uses schema validation but doesn't have the appropriate dependencies on the schema import and/or schema validation fatures, and doesn't reference an environment containing the specified schema. <test-case name="extvardef-026"> <description>Schema validation in default external var, incl variable type. Type missmatch. </description> <created by="David Graf" on="2011-12-05"/> <dependency type="spec" value="XQ30+"/> <test><![CDATA[ declare construction strip; import schema namespace hats="http://www.w3.org/XQueryTest/hats" at "SchemaImport/hats.xsd"; declare variable $x as schema-element(hats:s) external := validate strict { <hats:abf> <hats:a/> <hats:b/> <hats:b/> <hats:f/> <hats:f/> <hats:f/> </hats:abf>}; $x ]]></test> <result> <error code="XPTY0004"/> </result> </test-case>
Bug fixed. Thanks to David Graf
Confirmed fixed. Thanks.