This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
7.2.13 The fn:subsequence function STA / rule 5 If quantifier(Type) in { 1, + }, I don't think you're guaranteed that the result type has the same quantifier. Are you missing a "· ?" in the conclusion?
The working group agrees with your comment. The rule is bogus, and should have a ? at the end. also the ''' in the conclusion of the inferrence rule has to be removed. this results in the following inference rule. statEnv |- Expr : Type statEnv |- Expr1 : xs:double statEnv |- Expr2 : xs:double -------------------------------------------------------------------------------- statEnv |- fn:subsequence(Expr, Expr1, Expr2) : prime(Type) · quantifier(Type) - Jerome
Uh, except that you left out the '?' again.
Yes, you are right. The '?' is used as expected in the latest published draft. See: http://www.w3.org/TR/2005/WD-xquery-semantics-20050915/#sec_fn_subsequence - Jerome