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 5049 - 1.0.3dev: K2-LetExprWithout-24 and NamespaceURIFromQNameFunc019
Summary: 1.0.3dev: K2-LetExprWithout-24 and NamespaceURIFromQNameFunc019
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: 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: 2007-09-14 12:24 UTC by Tim Mills
Modified: 2007-09-17 14:57 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-09-14 12:24:50 UTC
The expected result for this test should be 1, not true.

(:*******************************************************:)
(: Test: K2-LetExprWithout-24                            :)
(: Written by: Frans Englich                             :)
(: Date: 2007-09-13T16:20:39+01:00                       :)
(: Purpose: Ensure a name test is reported for using the undefined focus, when a
ppearing as a child of a let binding. :)
(:*******************************************************:)
declare function local:function()
{
    let $b := (i/a)
    return 1
};
local:function()

exactly-one fails in NamespaceURIFromQNameFunc019 because there are two elemQN element in the input data.

(: Name: NamespaceURIFromQNameFunc019 :)
(: Description: Test function fn:namespace-uri-from-QName. Conditional expressio
n as parameter where both branches result in QName value:)

declare default element namespace "http://www.example.com/QNameXSD";

(: insert-start :)
declare variable $input-context as document-node(element(*, xs:untyped)) externa
l;
(: insert-end :)

fn:namespace-uri-from-QName(
        if( true() ) then fn:QName("http://www.example.com/urn", exactly-one(xs:
string(($input-context/root/elemQN))[1]))
        else fn:QName("http://www.example.com/urn", exactly-one(xs:string(($inpu
t-context/root/@attrQN))[1]))
Comment 1 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 2 Tim Mills 2007-09-17 14:57:59 UTC
Thanks.