This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 15693 - [QT3TS] extvardef-026, 027
Summary: [QT3TS] extvardef-026, 027
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Member-only Editors Drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-24 14:44 UTC by Tim Mills
Modified: 2012-05-28 12:07 UTC (History)
2 users (show)

See Also:


Attachments

Description Tim Mills 2012-01-24 14:44:33 UTC
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>
Comment 1 O'Neil Delpratt 2012-05-28 09:51:48 UTC
Bug fixed. Thanks to David Graf
Comment 2 Tim Mills 2012-05-28 12:07:55 UTC
Confirmed fixed.  Thanks.