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

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