- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 10 Mar 2008 20:24:04 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5556 Summary: distance for sentence/paragraph computation inconsistency 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 4.2.7.9 FTDistance section on how fts:wordDistance() is invoked with fts:tokenInfo is ordered by ('$fts:tokenInfo/@startPos, fts:tokenInfo/@endPos). 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 4.2.7.9 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 4.2.7.9 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