This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
- "$x cast as integer" should be "$x cast as xs:integer" - "define function" should be "declare function" - Instead of XPST0051 would not be the error code FORG0001 better?
Why do you prefer the FORG error? I will fix the rest editorially.
Ah, I see the problem - the examples attempt to catch static errors: # A try/catch expression without a CatchErrorList catches any error: The CatchErrorList in this try/catch expression specifies that only err:XPST0051 is caught: try { $x cast as integer } catch err:XPST0051 { 0 } # The CatchErrorList in this try/catch expression specifies that errors err:XPST0051 and err:XPST0032 are caught: try { $x cast as integer } catch err:XPST0051 | err:XPST0032 { 0 } I'll fix that, you can't catch a static error.
Fixed, will show up in next internal commit.