After some more investigation I've discovered that XQuery was updated
in Mac OS X 10.5.8 as part of a security vulnerability in the PCRE
library which it includes.
http://support.apple.com/kb/HT3757 (scroll to bottom of page)
Which also explains why all XQuery functions using regular
I noticed that the recent update of Mac OS X 10.5.8 breaks
compatibility with previous versions regarding XQuery statements in
NSXMLNode, specifically using the XQuery function tokenize. I
originally reported this bug against a future version of Mac OS X and
now seems to have slipped into