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 11996 - [XQFTTS] Catalog001, Catalog002, Catalog003
Summary: [XQFTTS] Catalog001, Catalog002, Catalog003
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Proposed Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-07 08:44 UTC by Tim Mills
Modified: 2011-02-23 09:33 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2011-02-07 08:44:51 UTC
These tests have been written to use fn:doc rather than using an $input-context variable, which places an unnecessary reliance on URI resolution behaviour in the test harness.  The catalog is actually correctly setting $input-context, so the queries should probably have been written as:

(: Name: Catalog001 :)
(: Description: test all input files have variable references :)

(: insert-start :)
(: declare variable $input-context external; :)
(: insert-end :)

<missing-variable>{
  for $x in $input-context//*:input-file
    [count(@variable) = 0 and ./text() != "emptydoc"]
  return string($x/../@name)
}</missing-variable>

rather than using doc("../../../XQFTTSCatalog.xml")

Compare with the corresponding tests in XQTS.
Comment 1 Mary Holstege 2011-02-22 18:31:34 UTC
Correct. I have fixed the tests. Please verify that you are happy with this resolution and close the bug.
Comment 2 Tim Mills 2011-02-23 09:33:42 UTC
Confirmed fixed.  Thanks.