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 5517 - FTContain() semantically allows searching atomic value
Summary: FTContain() semantically allows searching atomic value
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Working drafts
Hardware: All All
: 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: 2008-03-03 19:12 UTC by zhen hua liu
Modified: 2008-03-04 16:59 UTC (History)
0 users

See Also:


Attachments

Description zhen hua liu 2008-03-03 19:12:40 UTC
Is this a legal xquery with full text search?

("abc", "def", "ghi") ftcontains "abc"

Note that for function fts:FTContainsExpr(),
 the  $searchContext is a sequence of atomic values, not a sequence of
nodes. If $ignoreNodes is not empty, then the 'is' operation in fts:reconstruct()
should raise errors for atomic values because it is illegal to do 'is' xquery
operation on  atomic values.  
However, if $ignoreNodes is empty, then I think it is OK to do search on atomic
values even though the 4.1 Tokenization process stated that 'the process of converting the string value of a node to a sequence of token occurrences'
only cover the node case, not atomic value case.
Comment 1 zhen hua liu 2008-03-03 19:54:52 UTC
it is a legal query.
Comment 2 zhen hua liu 2008-03-04 16:59:11 UTC
The working draft 18 May 2007 is ambiguous for this. However, the next versoin
of the spec will fix this.