[Bug 5049] 1.0.3dev: K2-LetExprWithout-24 and NamespaceURIFromQNameFunc019

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5049

           Summary: 1.0.3dev: K2-LetExprWithout-24 and
                    NamespaceURIFromQNameFunc019
           Product: XML Query Test Suite
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: tim@cbcl.co.uk
         QAContact: public-qt-comments@w3.org


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]))

Received on Friday, 14 September 2007 12:24:52 UTC