This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
(1) In 3.1.5.1 Example: Partial Application of an Anonymous Function, the expression is not valid XPath. XPath does not allow multiple let clauses. (2) Ditto in 3.1.5.1 Example: Derived Types and Non-local Variable Bindings Rewrite as let $incr := 1, $f := function ($i as xs:decimal) as xs:decimal { $i + $incr } return $f(5) (3) In 3.1.5.3 Function coercion, the example is XQuery-only (search for "declare function") (4) In 3.1.5.3 the example starting "let $m := map {..." has multiple let clauses. I confined my testing to code tagged with @role='parse-test'. There are many more examples that could usefully have this attribute.
Note, I committed the stylesheet used for testing these examples as xquery-31/style/run-xpath-parse-tests.xsl - it requires XSLT 3.0.