From: Mark C. <co...@ma...> - 2008-12-08 04:19:51
|
Is there a way to modify the context so that you don't have to specify the collection each time? If possible, I'd like the xqueries to run in the same way no matter where they are stored in the database. Probably not important, but I'm making the REST-based HTTP request from actionscript... Swami Kevala wrote: > > Ok - just solved it myself! > > My queries are not stored at the root, so I need to put the collection at > the beginning i.e. > > let $blockText := > distinct-values($c//audioTranscript[@audioId=$audioId]/block[@id=$blockId]) > > works fine now! > -- View this message in context: http://www.nabble.com/XQueries-working-in-the-Java-Client-but-not-when-using-stored-.xql-files-on-the-database-tp17105869p20889312.html Sent from the exist-open mailing list archive at Nabble.com. |