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

[Bug 12209] New: [FO][FO30] errors in definition of fn:subsequence

From: <bugzilla@jessica.w3.org>
Date: Tue, 01 Mar 2011 09:35:29 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-12209-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=12209

           Summary: [FO][FO30] errors in definition of fn:subsequence
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Functions and Operators 3.0
        AssignedTo: mike@saxonica.com
        ReportedBy: gandhi.mukul@gmail.com
         QAContact: public-qt-comments@w3.org


It seems that few parts of the text of function 'fn:subsequence' is incorrectly
specified in the spec. This error seems to be present in both these documents:
1) XQuery 1.0 and XPath 2.0 Functions and Operators (Second Edition)
2) XPath and XQuery Functions and Operators 3.0 (Working Draft 14 December
2010) 

Below are possible discrepancies, and my view point of the correction, 

a)
$sourceSeq[fn:round($startingLoc) le position()]

should be,

$sourceSeq[fn:round($startingLoc) ge position()]

b)
$sourceSeq[fn:round($startingLoc) le position() 
    and position() lt fn:round($startingLoc) + fn:round($length)]

should be,

$sourceSeq[fn:round($startingLoc) ge position() 
    and position() lt fn:round($startingLoc) + fn:round($length)]

Ref:
http://www.w3.org/TR/xpath-functions/#func-subsequence (chapter 15.1.10)
http://www.w3.org/TR/xpath-functions-30/#func-subsequence (chapter 14.1.9)

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 1 March 2011 09:35:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:45 UTC