This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1475 - [FO] fn:subsequence: Should allow empty for startingLoc and length
Summary: [FO] fn:subsequence: Should allow empty for startingLoc and length
Status: CLOSED WONTFIX
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Functions and Operators 1.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ashok Malhotra
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on: 1467
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-19 20:11 UTC by Michael Rys
Modified: 2005-09-29 11:27 UTC (History)
0 users

See Also:


Attachments

Description Michael Rys 2005-05-19 20:11:10 UTC
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:

...
Comment 1 Mary Holstege 2005-07-21 20:45:56 UTC
The working group considered this comment at its meeting today
and decided not to accept it. For rationale, please see bug 1467.