- From: <bugzilla@wiggum.w3.org>
- Date: Sat, 25 Oct 2008 18:51:53 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=5696 Michael Dyck <jmdyck@ibiblio.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmdyck@ibiblio.org --- Comment #2 from Michael Dyck <jmdyck@ibiblio.org> 2008-10-25 18:51:52 --- (In reply to comment #0) > > Option 3 > -------- > > We could fix this query by using XQuery 1.1 try/catch. > > ".=$arg2" would have to be expanded out manually to "some" expressions > with a try/catch to return "false" when the XPST0004 is raised. > > This would be rather clumsy. I don't understand why you'd need to expand to 'some' expressions. Why not just replace .=$arg2 with try { .=$arg2 } catch err:XPTY0004 { false() } Or, for better encapsulation, replace it with my-equal(., $arg2) where 'my-equal' has the semantics that Option 1 would give to '=': declare function my-equal(...) as boolean() { try { $arg1 = $arg2 } catch err:XPTY0004 { false() } } -- Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Saturday, 25 October 2008 18:52:01 UTC