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 8127 - [XQTS] CVS: fn-datacomplextype-1 & fn-datamixedcontent-1 validate missing
Summary: [XQTS] CVS: fn-datacomplextype-1 & fn-datamixedcontent-1 validate missing
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Nicolae Brinza
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-30 11:34 UTC by Tim Mills
Modified: 2010-03-25 11:26 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2009-10-30 11:34:22 UTC
I suspect that the argument to fn:data needs to be validated in tests fn-datacomplextype-1 and fn-datamixedcontent-1 to get the desired result.

(:*******************************************************:)
(:Test: fn-datacomplextype-1                             :)
(:Written By: Nicolae Brinza                             :)
(:Purpose: Evaluates The "data" function                 :)
(: with the argument set to a complex element            :)
(:*******************************************************:)

import schema namespace mc ="http://www.w3.org/XQueryTest/mixedcontent" at "mixe
dcontent.xsd";

fn:data(
  <mc:weather>
    <mc:temperature>30</mc:temperature>
    <mc:precipitation>10</mc:precipitation>
  </mc:weather>
)
Comment 1 Nicolae Brinza 2010-03-25 11:26:19 UTC
Yes, the argument needs to be validated. Changed the test accordingly.