This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
<test-case name="try-012"> <description>Use err:description local variable, implicitly declared</description> <created by="O'Neil Delpratt" on="2012-03-02"/> <environment ref="err"/><test><![CDATA[ declare function local:f($d as xs:integer) { 10 div $d }; try { local:f(0) } catch * {$err:description} ]]></test> <result> <any-of> <assert-string-value>Integer division by zero</assert-string-value> <assert-type>xs:string</assert-type> </any-of> </result> </test-case> I don't think an error description is defined for err:FOAR0001 so this test shouldn't assert description "Integer division by zero". Also, I think it is valid for $err:description to be empty.
WG. agrees with proposal by Josh. I will make the fix accordingly
Bug fix applied in cvs.
The change applied is not enough because $description may also be empty. It needs to be something like: <any-of> <assert-type>xs:string</assert-type> <assert-empty/> </any-of> I will apply this change and leave the bug resolved.