This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
There appears to be a cut-and-past error in the description of ends-with. The specification says: "The function returns an xs:boolean indicating whether or not the value of $arg1 ***starts with*** a sequence of collation units that provides a match to the collation units of $arg2 according to the collation that is used." "starts with" should presumably be "ends with".
Fixed in the 3.1 draft, and noted in the editor's draft errata for 3.0 (changes.txt).