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 4084 - Static typing of Constr-cont-nodeid-1, -3, -4 and -5
Summary: Static typing of Constr-cont-nodeid-1, -3, -4 and -5
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-15 16:00 UTC by Tim Mills
Modified: 2007-09-17 15:17 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2006-12-15 16:00:06 UTC
Under the rules for element construction, $y in:

for $x in <a/>,
    $y in <elem>{$x}</elem>
return $y/a is $x

is typed as element y of xs:anyType.

Therefore $/y is typed as sequence. op:is-same-node requires node()?.

This problem affects:

Constr-cont-nodeid-1
Constr-cont-nodeid-3
Constr-cont-nodeid-4
Constr-cont-nodeid-5

Also related are problems in:

Constr-cont-uripres-1 
Constr-cont-baseuri-2

where the argument to fn:base-uri is typed as a sequence.
Comment 1 Tim Mills 2006-12-15 16:09:38 UTC
Simil
Constr-compelem-nodeid-1
Constr-compelem-nodeid-3
Constr-compelem-nodeid-4
Constr-compelem-nodeid-5
Constr-compelem-baseuri-2
Comment 2 Tim Mills 2006-12-15 17:06:12 UTC
Similarly for:

Constr-docnode-nodeid-1
Constr-docnode-nodeid-3
Constr-docnode-nodeid-4
Constr-docnode-nodeid-5
Comment 3 Frans Englich 2007-09-14 09:34:52 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED. Otherwise, reopen this report. If no feedback is returned within two weeks, status will be changed to CLOSED. Thanks for reporting!
Comment 4 Tim Mills 2007-09-14 12:49:36 UTC
Constr-compelem-nodeid-5 is not fixed.

Believe it or not.  The type of $x is an untyped element.  Untyped elements may contain more than one text node (even though the one in question doesn't).

The standard static typing rules don't allow us to refine this type.
Comment 5 Frans Englich 2007-09-14 15:14:35 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED.
Otherwise, reopen this report. If no feedback is returned within two weeks,
status will be changed to CLOSED. Thanks for reporting!
Comment 6 Tim Mills 2007-09-17 15:17:21 UTC
Thanks.