W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2008

[Bug 5455] CVS: K2-SeqIDFunc-11 and 12

From: <bugzilla@wiggum.w3.org>
Date: Wed, 06 Feb 2008 16:18:05 +0000
CC:
To: public-qt-comments@w3.org
Message-Id: <E1JMmyL-0007g6-ND@wiggum.w3.org>

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

           Summary: CVS: K2-SeqIDFunc-11 and 12
           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


To pass static typing, K2-SeqIDFunc-11 and 12 need an exactly-one around the
second argument to fn:id.

fn:id($arg as xs:string*, $node as  node()) as element()*

In call to function 'id', expected type 'node()' for argument 2 but found
'(attribute name of type xs:untypedAtomic)*'.


(:*******************************************************:)
(: Test: K2-SeqIDFunc-11                                 :)
(: Written by: Frans Englich                             :)
(: Date: 2007-11-22T11:31:21+01:00                       :)
(: Purpose: Select elements with xml:id, and trigger node sorting. :)
(:*******************************************************:)
(: insert-start :)
declare variable $input-context1 as document-node(element(*, xs:untyped))
extern
al;
(: insert-end :)

id(("short"), $input-context1//xs:element/@name[. = "positiveInteger"])
Received on Wednesday, 6 February 2008 16:18:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:14:49 GMT