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 13919 - CTA tests exceeds required XPath subset
Summary: CTA tests exceeds required XPath subset
Status: CLOSED FIXED
Alias: None
Product: XML Schema Test Suite
Classification: Unclassified
Component: IBM tests (show other bugs)
Version: 2006-11-06
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: C. M. Sperberg-McQueen
QA Contact: XML Schema Test Suite mailing list
URL:
Whiteboard:
Keywords: decided
Depends on:
Blocks:
 
Reported: 2011-08-26 14:14 UTC by Sandy Gao
Modified: 2011-10-21 16:38 UTC (History)
1 user (show)

See Also:


Attachments

Description Sandy Gao 2011-08-26 14:14:55 UTC
typeAlternatives.testSet:
s3_12v07
s3_12v09
s3_12v10
s3_12v11
s3_12ii03

typeAlternativesMixed.testSet:
typeAlternatives_001
typeAlternatives_004
typeAlternatives_005
typeAlternatives_006

vc.testSet:
vc_006

For most/all of these tests, they don't really need to go beyond the subset. Suggest to update the test schemas to stay within the subset.
Comment 1 Sandy Gao 2011-08-26 14:43:00 UTC
And s3_12ii06 in typeAlternatives.testSet
Comment 2 David Ezell 2011-08-26 15:43:55 UTC
WG agrees with Sandy that these should be fixed.
Comment 3 Sandy Gao 2011-08-26 16:28:00 UTC
It turned out that constructor functions are supported by the subset.

s3_12v07 (No change. Constructor function.)

s3_12v09
    <xs:alternative test="@country = us" ...
    <xs:alternative test="@country = can" ...
become
    <xs:alternative test="@country = 'us'" ...
    <xs:alternative test="@country = 'can'" ...

s3_12v10
    <xs:alternative test="@end-time le 10" ...
    <xs:alternative test="@end-time gt 10" ...
become
    <xs:alternative test="@end-time &lt;= 10" ...
    <xs:alternative test="@end-time > 10" ...

s3_12v11 (No change. Constructor function.)

s3_12ii03 (No change. Constructor function.)

s3_12ii06
    <xs:alternative test="(@kind cast as messageTypeString)='string'" ...
become
    <xs:alternative test="@kind cast as messageTypeString='string'" ...

typeAlternatives_001
    <xs:alternative test="@kind = ('square', 'rectangle')" ...
become
    <xs:alternative test="@kind = 'square' or @kind = 'rectangle'" ...

typeAlternatives_004
    <xs:alternative test="@a = true()">
become
    <xs:alternative test="@a cast as xs:boolean">

typeAlternatives_005
    <xs:alternative test="@kind eq 'NNI'" ...
become
    <xs:alternative test="@kind = 'NNI'" ...

typeAlternatives_006
    <xs:alternative test="@minimal eq true()" ...
    <xs:alternative test="@minimal cast as xs:boolean" ...

vc_006
    <xs:alternative test="@v2 = true()" ...
becomes
    <xs:alternative test="@v2 cast as xs:boolean" ...