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

[Bug 5556] distance for sentence/paragraph computation inconsistency

From: <bugzilla@wiggum.w3.org>
Date: Mon, 10 Mar 2008 20:24:04 +0000
To: public-qt-comments@w3.org
Message-Id: <E1JYoXU-0008Vr-KY@wiggum.w3.org>


           Summary: distance for sentence/paragraph computation
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Full Text 1.0
        AssignedTo: jim.melton@acm.org
        ReportedBy: zhen.liu@oracle.com
         QAContact: public-qt-comments@w3.org

In section 4.2.4 formal semantics function:
fts:wordDistance() is defined as $tokenInfo2/@startPos - $tokenInfo1/@endPos -1
This is consistent with FTDistance section on how fts:wordDistance() is
invoked with fts:tokenInfo is ordered by ('$fts:tokenInfo/@startPos,

However, such consistency is not followed for sentence & paragraph computation.
 fts:sentenceDistance() is defined 
as $tokenInfo2/@startSent - $tokenInfo1/@endSent -1 in section 4.2.4.
However, fts:sentenceDistance() is involked in section with
fts:tokenInfo is order by ('$fts:tokenInfo/@startPos, fts:tokenInfo/@endPos)
instead of ($fts:tokenInfo/@startSent, fts:tokenInfo/@endSent).
The same inconsistency applies to paragraph as well. The seciton should
invoke fts:paraDistance() with fts:tokenInfo ordered by
($fts:tokenInfo/@startPara, fts:tokenInfo/@endPara).
Received on Monday, 10 March 2008 20:24:11 UTC

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