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 3339 - fn-idref-8, fn-idref-9, fn-idref-15, fn-idref-16 use a single string instead of sequence of strings
Summary: fn-idref-8, fn-idref-9, fn-idref-15, fn-idref-16 use a single string instead ...
Status: VERIFIED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 13:06 UTC by Alberto Massari
Modified: 2006-06-21 09:35 UTC (History)
0 users

See Also:


Attachments

Description Alberto Massari 2006-06-16 13:06:53 UTC
The fn:idref function expects, as the first argument, the list of IDs to be searched

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

but these tests provide a single string "id1 id2", as if fn:idref should tokenize it
Comment 1 Carmelo Montanez 2006-06-19 18:58:36 UTC
Alberto:

Thanks, I changed the test to use sequences instead.  It is unclear though from reading the specs thaat a sequence is actually required.

Thanks,
Carmelo
Comment 2 Alberto Massari 2006-06-20 18:18:53 UTC
Hi Carmelo,
given the signature of the function, I would say a correct invocation is

  fn:idref(("id1", "id2"), $input-context1/ids:IDS)

that is, the first argument is a sequence of two string items.
Comment 3 Carmelo Montanez 2006-06-20 18:21:58 UTC
Alberto:

Isn't that what I did?, will check.

Carmelo
Comment 4 Carmelo Montanez 2006-06-20 18:27:22 UTC
Alberto:

Correct, I needed a sequence of strings, and that is not what I submitted.
Changed tests once more.

Thanks,
Carmelo