Hi Lech, You are correct, it appears that the code in the Feed app was written for XQuery 0.9. The quick fix here would be to change your HTTP app server "default xquery version" to 0.9-ml. Go to the MarkLogic Admin UI, select Groups->Default->App Servers and select the http app server you're using. The setting is near the bottom of the page.
--Mark ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of Lech Rzedzicki Sent: Wednesday, August 26, 2009 9:43 AM To: [email protected] Subject: [MarkLogic Dev General] Getting Feed API to work Hi. I'm building a simple app that uses RSS feeds as input and I would like to reuse the Feed API from the developer workshop http://developer.marklogic.com/code/. I created a simple HTTP Server on ML4.1 and configured all the optimisations as per README.txt The required dependency, date-parser.xqy is accesible. However, when I try to load the sample-app (which redirects to feed.xqy), I get a somewhat misleading error: XDMP-UNEXPECTED: (err:XPST0003) Unexpected token syntax error, unexpected DefaultElement_ in /feed/sample-app/, on line 1 [1.0-ml] Can anyone confirm that Feed is compatible with ML4.1, as it seems to have been written for 3.2 and forward-compatible, I think? What's the default behaviour of the sample app? Do any of you have sample apps using RSS that you'd care to share? Finally what might cause the problem? I'm thinking it still might have something to do with the date-parser.xqy Best regards and thanks in advance, Lech Rzedzicki
_______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
