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

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

From: <bugzilla@wiggum.w3.org>
Date: Mon, 03 Mar 2008 19:12:40 +0000
To: public-qt-comments@w3.org
Message-Id: <E1JWG5Y-0007k6-Ri@wiggum.w3.org>


           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
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:22 UTC