I'm not sure if this is XQuery or if it's some Apple specific thing with XQuery, but this is painful.
180 let $log := if ( count($results) = 7) then
181 msg("----7 items")
182 else
183 msg("----items = ", count($results))
The above statement is a template for a valid if-then-else block in XQuery. Note that you must have the else clause. If you need nothing to happen in the else clause, you need to stick in a null() object for a no-op.
Other things to note - you have to assign the result of the if statement or else it will hang.
Wow. There's been over 1000 downloads of the Canada411 channel in the first day of release.
I don't think I made it clear before that this webapp requires Sherlock 3 to run properly. That means you MUST have OS X 10.2 - Jaguar.
It's pretty clear that there is some kind of hunger for Canadian web apps out there.
I always figured that the first complaints about the Canada411 channel would be "why doesn't it support > 25 results?".
This is yet more proof that programmers have no idea what users really want. :-)
Ronald Leroux has graciously translated the NIB file into French. If your Mac has 'Français' set as the primary language - the channel will render in French.
Yeehaw!
The channel was not adding itself to the toolbar correctly - this was actually due to an invalid URL I was passing around.
The correct URL to install the Canada411 channel should be: