Victor Ng's Radio Weblog : armed with cocoa, an ibook and too much spare time
Updated: 4/4/03; 12:23:12 AM.

 

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


dotMac


Categories

Cocoa


Friends


Site Meter
 
 

Monday, November 25, 2002

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.

Is any of this documented on the web anywhere?

Hell - I couldn't find it.
9:32:29 PM    


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:

sherlock://homepage.mac.com/vng1/Canada411/SherlockChannel.xml?action=add


12:52:35 PM    


© Copyright 2003 Victor Ng.



Click here to visit the Radio UserLand website.

 


November 2002
Sun Mon Tue Wed Thu Fri Sat
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Oct   Dec


AIM: vng1@mac.com
MSN: v2ng@hotmail.com
ICQ: 30390174

NetNewsWire: More news, less junk. Faster