- From: <bugzilla@wiggum.w3.org>
- Date: Thu, 19 May 2005 20:11:10 +0000
- To: public-qt-comments@w3.org
- Cc:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=1475
Summary: [FO] fn:subsequence: Should allow empty for startingLoc
and length
Product: XPath / XQuery / XSLT
Version: Last Call drafts
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Functions and Operators
AssignedTo: ashok.malhotra@oracle.com
ReportedBy: mrys@microsoft.com
QAContact: public-qt-comments@w3.org
BugsThisDependsOn: 1467
startingLoc and length should be allowed to be empty. Often these values are
being calculated and the static type of the calculation will result in an
optionally empty type. Proposed rewording:
fn:subsequence($sourceSeq as item()*, $startingLoc as xs:double?) as item()*
fn:subsequence( $sourceSeq as item()*,
$startingLoc as xs:double?,
$length as xs:double?) as item()*
Summary: Returns the contiguous sequence of items in the value of $sourceSeq
beginning at the position indicated by the value of $startingLoc and
continuing for the number of items indicated by the value of $length.
If $startingLoc is the empty sequence, the error FORG--99 is raised.
If $length is the empty sequence, the result is the empty sequence.
More specifically, returns the items in $sourceString whose position $p obeys:
...
Received on Thursday, 19 May 2005 20:11:16 UTC