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 2104 - parts-queries-results-q1 can fail
Summary: parts-queries-results-q1 can fail
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.6.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-09 14:48 UTC by Marc Van Cappellen
Modified: 2005-11-03 08:25 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2005-09-09 14:48:14 UTC
Following the static typing rules outlined in the Formal Semantics, we believe 
that static implementation will report XPTY0004.

- in local:one_level, $p is statically typed as element()
- $p/@partid is typed as attribute(partid, xs:anySimpleType)*
- An implementation using the infoset mapping for fn:doc types
  $s/@partof as attribute(partof, xdt:untypedAtomic)* 
As a consequence, $s/@partof = $p/@partid should raise XPTY0004.
Comment 1 Carmelo Montanez 2005-10-31 20:36:01 UTC
Marc:

I asked for Jonathan's input on the matter.  He wrote the use cases and is 
quite well versed on the use cases.

Thanks,
Carmelo
Comment 2 Jonathan Robie 2005-11-01 14:39:34 UTC
I agree with Marc.

So how do we process this? At the very least, our test suites should allow
static implementations to raise this error. We might want to fix this in the use
cases document and think about when to republish, since we probably want the use
cases to match the test suite and we probably don't want to penalize anyone for
supporting static typing.
Comment 3 Carmelo Montanez 2005-11-01 15:07:59 UTC
Mark/Jonathan:

I can go ahead and change the test case entry in the catalog file to allow for 
a static error as well.  Just need to think.  How to set the scenario 
(standard or parse-error).

Thanks,
Carmelo
Comment 4 Carmelo Montanez 2005-11-01 16:14:57 UTC
Agree.  Test case entry in catalog was changed to allow for an alternate error 
to be raised.  This may be a temporary solution if the use case gets changed.

Thanks,
Carmelo
Comment 5 Marc Van Cappellen 2005-11-03 08:25:38 UTC
This resolution is satisfactory, change state to closed.