[Bug 5517] FTContain() semantically allows searching atomic value

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

           Summary: FTContain() semantically allows searching atomic value
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: zhen.liu@oracle.com
         QAContact: public-qt-comments@w3.org


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.

Received on Monday, 3 March 2008 19:12:47 UTC