Constr-inscope-1
QUERY
(: Name: Constr-inscope-1 :)
(: Written by: Andreas Behm :)
(: Description: Rename inscope namespace :)
(: insert-start :)
declare variable $input-context external;
(: insert-end :)
{$input-context//@*:attr1}
EXPECTED RESULTS
ACTUAL RESULTS
Constr-inscope-2
QUERY
(: Name: Constr-inscope-2 :)
(: Written by: Andreas Behm :)
(: Description: Rename inscope namespace :)
(: insert-start :)
declare variable $input-context external;
(: insert-end :)
{$input-context//@*:attr1, $input-context//@*:attr2}
EXPECTED RESULTS
ACTUAL RESULTS
Constr-inscope-3
QUERY
(: Name: Constr-inscope-3 :)
(: Written by: Andreas Behm :)
(: Description: Rename inscope namespace :)
for $x in
return {$x//@*:attr1}
EXPECTED RESULTS
ACTUAL RESULTS
Constr-inscope-4
QUERY
(: Name: Constr-inscope-4 :)
(: Written by: Andreas Behm :)
(: Description: Rename inscope namespace :)
for $x in
return {$x//@*:attr1, $x//@*:attr2}
EXPECTED RESULTS
ACTUAL RESULTS
fn-current-dateTime-1
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-1 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 1, 2005 :)
(:Purpose: Evaluates a simple call to the fn:current-dateTime" :)
(: function. Uses a String Value. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:current-dateTime())
EXPECTED RESULTS
2005-12-05T17:10:00.203-05:00
ACTUAL RESULTS
2006-08-24T11:32:42.332+01:00
fn-current-dateTime-2
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-2 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 1, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function :)
(:as argument to fn:year-from-dateTime function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:year-from-dateTime(fn:current-dateTime())
EXPECTED RESULTS
2005
ACTUAL RESULTS
2006
fn-current-dateTime-3
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-3 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 1, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function :)
(:as argument to fn-month-from-dateTime function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:month-from-dateTime(fn:current-dateTime())
EXPECTED RESULTS
12
ACTUAL RESULTS
8
fn-current-dateTime-4
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-4 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 1, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function used as :)
(:as argument to "day-from-dateTime" function :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:day-from-dateTime(fn:current-dateTime())
EXPECTED RESULTS
5
ACTUAL RESULTS
24
fn-current-dateTime-6
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-6 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-dateTime" function used :)
(:as part of a "+" expression and a dayTimeDuration. :)
(:*******************************************************:)
fn:current-dateTime() + xs:dayTimeDuration("P3DT1H15M")
EXPECTED RESULTS
2005-12-08T18:25:00.312-05:00
ACTUAL RESULTS
2006-08-27T12:47:42.382+01:00
fn-current-datetime-7
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-7 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-dateTime" function used :)
(:as part of a "-" expression and a dayTimeDuration. :)
(:*******************************************************:)
fn:current-dateTime() - xs:dayTimeDuration("P3DT1H15M")
EXPECTED RESULTS
2005-12-02T15:55:00.312-05:00
ACTUAL RESULTS
2006-08-21T10:17:42.382+01:00
fn-current-dateTime-10
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-10 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 5, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function as an :)
(:argument to the xs:string function. :)
(:*******************************************************:)
xs:string(fn:current-dateTime())
EXPECTED RESULTS
2005-12-05T17:10:00.344-05:00
ACTUAL RESULTS
2006-08-24T11:32:42.402+01:00
fn-current-dateTime-11
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-11 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 5, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function as an :)
(:argument to the timezone-from-dateTime function. :)
(:*******************************************************:)
fn:timezone-from-dateTime(current-dateTime())
EXPECTED RESULTS
-PT5H
ACTUAL RESULTS
PT1H
fn-current-dateTime-21
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-21 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-dateTime" function used :)
(:as part of a "-" operation and a yearMonthDuration. :)
(:*******************************************************:)
fn:current-dateTime() - xs:yearMonthDuration("P1Y2M")
EXPECTED RESULTS
2004-10-05T17:10:00.453-05:00
ACTUAL RESULTS
2005-06-24T11:32:42.502+01:00
fn-current-dateTime-22
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-22 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 1, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function :)
(:as argument to fn:hours-from-dateTime function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:hours-from-dateTime(fn:current-dateTime())
EXPECTED RESULTS
17
ACTUAL RESULTS
11
fn-current-dateTime-23
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-23 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 1, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function :)
(:as argument to fn-minutes-from-dateTime function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:minutes-from-dateTime(fn:current-dateTime())
EXPECTED RESULTS
10
ACTUAL RESULTS
32
fn-current-dateTime-24
QUERY
(:*******************************************************:)
(:Test: fn-current-dateTime-24 :)
(:Written By: Carmelo Montanez :)
(:dateTime: December 1, 2005 :)
(:Purpose: Evaluates The "current-dateTime" function used as :)
(:as argument to "seconds-from-dateTime" function :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:seconds-from-dateTime(fn:current-dateTime())
EXPECTED RESULTS
0.469
ACTUAL RESULTS
42.522
fn-current-date-1
QUERY
(:*******************************************************:)
(:Test: fn-current-date-1 :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates a simple call to the fn:current-date" :)
(: function. Uses a String Value. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:current-date())
EXPECTED RESULTS
2005-12-05-05:00
ACTUAL RESULTS
2006-08-24+01:00
fn-current-date-2
QUERY
(:*******************************************************:)
(:Test: fn-current-date :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates The "current-date" function :)
(:as argument to fn:hours-from-date function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:year-from-date(fn:current-date())
EXPECTED RESULTS
2005
ACTUAL RESULTS
2006
fn-current-date-3
QUERY
(:*******************************************************:)
(:Test: fn-current-date-3 :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates The "current-date" function :)
(:as argument to fn-month-from-date function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:month-from-date(fn:current-date())
EXPECTED RESULTS
12
ACTUAL RESULTS
8
fn-current-date-4
QUERY
(:*******************************************************:)
(:Test: fn-current-date-4 :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates The "current-date" function used as :)
(:as argument to "day-from-date" function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:day-from-date(fn:current-date())
EXPECTED RESULTS
5
ACTUAL RESULTS
24
fn-current-date-6
QUERY
(:*******************************************************:)
(:Test: fn-current-date-6 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-date" function used :)
(:as part of a "+" expression and a dayTimeDuration. :)
(:*******************************************************:)
fn:current-date() + xs:dayTimeDuration("P3DT1H15M")
EXPECTED RESULTS
2005-12-08-05:00
ACTUAL RESULTS
2006-08-27+01:00
fn-current-date-7
QUERY
(:*******************************************************:)
(:Test: fn-current-date-7 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-date" function used :)
(:as part of a "-" expression and a dayTimeDuration. :)
(:*******************************************************:)
fn:current-date() - xs:dayTimeDuration("P3DT1H15M")
EXPECTED RESULTS
2005-12-01-05:00
ACTUAL RESULTS
2006-08-20+01:00
fn-current-date-10
QUERY
(:*******************************************************:)
(:Test: fn-current-date-10 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "current-date" function as an :)
(:argument to the xs:string function. :)
(:*******************************************************:)
xs:string(fn:current-date())
EXPECTED RESULTS
2005-12-05-05:00
ACTUAL RESULTS
2006-08-24+01:00
fn-current-date-11
QUERY
(:*******************************************************:)
(:Test: fn-current-date-11 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "current-date" function as an :)
(:argument to the timezone-from-date function. :)
(:*******************************************************:)
fn:timezone-from-date(current-date())
EXPECTED RESULTS
-PT5H
ACTUAL RESULTS
PT1H
fn-current-date-21
QUERY
(:*******************************************************:)
(:Test: fn-current-date-21 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-date" function used :)
(:as part of a "-" operation and a yearMonthDuration. :)
(:*******************************************************:)
fn:current-date() - xs:yearMonthDuration("P1Y2M")
EXPECTED RESULTS
2004-10-05-05:00
ACTUAL RESULTS
2005-06-24+01:00
fn-current-time-1
QUERY
(:*******************************************************:)
(:Test: fn-current-time-1 :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates a simple call to the fn:current-time" :)
(: function. Uses a String Value. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:current-time())
EXPECTED RESULTS
10:15:03.408-05:00
ACTUAL RESULTS
11:32:42.783+01:00
fn-current-time-2
QUERY
(:*******************************************************:)
(:Test: fn-curren-time :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates The "current-time" function :)
(:as argument to fn:hours-from-time function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:hours-from-time(fn:current-time())
EXPECTED RESULTS
10
ACTUAL RESULTS
11
fn-current-time-3
QUERY
(:*******************************************************:)
(:Test: fn-current-time-3 :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates The "current-time" function :)
(:as argument to fn-minutes-from-time-function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:minutes-from-time(fn:current-time())
EXPECTED RESULTS
15
ACTUAL RESULTS
32
fn-current-time-4
QUERY
(:*******************************************************:)
(:Test: fn-current-time-4 :)
(:Written By: Carmelo Montanez :)
(:Date: December 1, 2005 :)
(:Purpose: Evaluates The "current-time" function used as :)
(:as argument to "seconds-from-time" function. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:seconds-from-time(fn:current-time())
EXPECTED RESULTS
3.455
ACTUAL RESULTS
42.813
fn-current-time-6
QUERY
(:*******************************************************:)
(:Test: fn-current-time-6 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-time" function used :)
(:as part of a "+" expression and a dayTimeDuration. :)
(:*******************************************************:)
fn:current-time() + xs:dayTimeDuration("P3DT1H15M")
EXPECTED RESULTS
14:53:18.059-05:00
ACTUAL RESULTS
12:47:42.823+01:00
fn-current-time-7
QUERY
(:*******************************************************:)
(:Test: fn-current-time-7 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "fn-current-time" function used :)
(:as part of a "-" expression and a dayTimeDuration. :)
(:*******************************************************:)
fn:current-time() - xs:dayTimeDuration("P3DT1H15M")
EXPECTED RESULTS
12:23:18.059-05:00
ACTUAL RESULTS
10:17:42.833+01:00
fn-current-time-10
QUERY
(:*******************************************************:)
(:Test: fn-current-time-10 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "current-time" function as an :)
(:argument to the xs:string function. :)
(:*******************************************************:)
xs:string(fn:current-time())
EXPECTED RESULTS
13:38:18.09-05:00
ACTUAL RESULTS
11:32:42.843+01:00
fn-current-time-11
QUERY
(:*******************************************************:)
(:Test: fn-current-time-11 :)
(:Written By: Carmelo Montanez :)
(:Date: December 5, 2005 :)
(:Purpose: Evaluates The "current-time" function as an :)
(:argument to the timezone-from-time function. :)
(:*******************************************************:)
fn:timezone-from-time(current-time())
EXPECTED RESULTS
-PT5H
ACTUAL RESULTS
PT1H
fn-implicit-timezone-2
QUERY
(:Test: fn-implicit-timezone-2 :)
(:Description: Normal call to "fn:implicit-timezone". :)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:implicit-timezone())
EXPECTED RESULTS
-PT5H
ACTUAL RESULTS
PT1H
fn-implicit-timezone-3
QUERY
(:Test: fn-implicit-timezone-3 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of an addition operation. :)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:implicit-timezone() + fn:implicit-timezone())
EXPECTED RESULTS
-PT10H
ACTUAL RESULTS
PT2H
fn-implicit-timezone-5
QUERY
(:Test: fn-implicit-timezone-5 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(:of a multiplication operation. :)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:implicit-timezone() * xs:double(2))
EXPECTED RESULTS
-PT10H
ACTUAL RESULTS
PT2H
fn-implicit-timezone-9
QUERY
(:Test: fn-implicit-timezone-9 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of a division operation. :)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:implicit-timezone() div xs:double(2))
EXPECTED RESULTS
-PT2H30M
ACTUAL RESULTS
PT30M
fn-implicit-timezone-14
QUERY
(:Test: fn-implicit-timezone-14 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of a division operation. Second operand is a call to xs:dayTimeDuration function.:)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:implicit-timezone() div xs:dayTimeDuration("P0DT60M00S"))
EXPECTED RESULTS
-5
ACTUAL RESULTS
1
fn-implicit-timezone-15
QUERY
(:Test: fn-implicit-timezone-15 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of an addition operation. First operand is a call to xs:time function.:)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(xs:time("05:00:00") + fn:implicit-timezone())
EXPECTED RESULTS
00:00:00
ACTUAL RESULTS
06:00:00
fn-implicit-timezone-16
QUERY
(:Test: fn-implicit-timezone-16 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of a subtraction operation. First operand is a call to xs:time function.:)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(xs:time("05:00:00") - fn:implicit-timezone())
EXPECTED RESULTS
10:00:00
ACTUAL RESULTS
04:00:00
fn-implicit-timezone-17
QUERY
(:Test: fn-implicit-timezone-17 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of a subtraction operation. First operand is a call to xs:date function.:)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(xs:date("2000-10-30") - fn:implicit-timezone())
EXPECTED RESULTS
2000-10-30
ACTUAL RESULTS
2000-10-29
fn-implicit-timezone-18
QUERY
(:Test: fn-implicit-timezone-18 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of an addition operation. First operand is a call to xs:date function.:)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(xs:date("2000-10-30") + fn:implicit-timezone())
EXPECTED RESULTS
2000-10-29
ACTUAL RESULTS
2000-10-30
fn-implicit-timezone-19
QUERY
(:Test: fn-implicit-timezone-19 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of a subtraction operation. First operand is a call to xs:dateTime function.:)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(xs:dateTime("2000-10-30T11:12:00") - fn:implicit-timezone())
EXPECTED RESULTS
2000-10-30T16:12:00
ACTUAL RESULTS
2000-10-30T10:12:00
fn-implicit-timezone-20
QUERY
(:Test: fn-implicit-timezone-20 :)
(:Description: Evaluation of "fn:implicit-timezone" as part :)
(: of an addition operation. First operand is a call to xs:dateTime function.:)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(xs:dateTime("2000-10-30T11:12:00") + fn:implicit-timezone())
EXPECTED RESULTS
2000-10-30T06:12:00
ACTUAL RESULTS
2000-10-30T12:12:00
fn-implicit-timezone-21
QUERY
(:Test: fn-implicit-timezone-21 :)
(:Description: Evaluation of "fn:implicit-timezone" as an :)
(: an argument to the adjust-date-to-timezone function. :)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:adjust-date-to-timezone(xs:date("2000-10-30"),fn:implicit-timezone()))
EXPECTED RESULTS
2000-10-30-05:00
ACTUAL RESULTS
2000-10-30+01:00
fn-implicit-timezone-22
QUERY
(:Test: fn-implicit-timezone-22 :)
(:Description: Evaluation of "fn:implicit-timezone" as an :)
(: an argument to the adjust-time-to-timezone function. :)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:adjust-time-to-timezone(xs:time("10:00:00"),fn:implicit-timezone()))
EXPECTED RESULTS
10:00:00-05:00
ACTUAL RESULTS
10:00:00+01:00
fn-implicit-timezone-23
QUERY
(:Test: fn-implicit-timezone-23 :)
(:Description: Evaluation of "fn:implicit-timezone" as an :)
(: an argument to the adjust-dateTime-to-timezone function. :)
(:insert-start :)
declare variable $input-context1 external;
(: insert-end :)
fn:string(fn:adjust-dateTime-to-timezone(xs:dateTime("2002-03-07T10:00:00"),fn:implicit-timezone()))
EXPECTED RESULTS
2002-03-07T10:00:00-05:00
ACTUAL RESULTS
2002-03-07T10:00:00+01:00