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 2677 - Alternative results for fn-implicit-timezone-13
Summary: Alternative results for fn-implicit-timezone-13
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-07 00:37 UTC by Michael Kay
Modified: 2006-06-22 12:59 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2006-01-07 00:37:13 UTC
Test fn-implicit-timezone-13 divides the implicit timezone by itself, and the
published result is 1. However, if the implicit timezone is GMT, the expected
result is error FOAR0001 (divide by zero).
Comment 1 Carmelo Montanez 2006-01-10 20:12:42 UTC
True ... but the people in Greenwich will never run the test suite (sorry
could not resist).  Added alternative results to catalog entry.  Please close 
the bug when able to verify.

Thanks,
Carmelo
Comment 2 Michael Kay 2006-01-10 21:26:36 UTC
I thought that rather than adding alternative results, it might be better to
change the query to do

(implicit-timezone() + xdt:duration('PT1S')) div
(implicit-timezone() + xdt:duration('PT1S'))

and then you would always get the result 1.

Michael Kay
Comment 3 Carmelo Montanez 2006-01-11 15:05:54 UTC
Mike:

Good suggestion.  The test even looks more exotic.  Will do the change.

Cheers
Carmelo