Re: [basex-talk] full text with search term in a variable gives no matches

2013-05-14 Thread Christian Grün
Hi Liam, this is unusual; for the referenced document, Using .//text(), I get.. Paris: 2485 Cambridge: 1136 London: 2444 Oxford: 1865 boy: 180 …and using ., I get… Paris: 2484 Cambridge: 1130 London: 2442 Oxford: 1860 boy: 179 I get similar results for CHOP = true and false. Have you tried to

[basex-talk] full text with search term in a variable gives no matches

2013-05-12 Thread Liam R E Quin
The following query gives me no results: for $city as xs:string in (Paris, Cambridge, London, Oxford) return ( $city, count(/dictionary/letter/entry[.//p//text() contains text {$city}]), #xa; ) However, BaseX rewrites it to for $city as xs:string in (Paris, Cambridge, London, Oxford,

Re: [basex-talk] full text with search term in a variable gives no matches

2013-05-12 Thread Christian Grün
Hi Liam, The following query gives me no results: could you pass me on a document for testing? Your query seemed to do the right thing for the following document: dictionaryletterentrypParis/p/entry/letter/dictionary for $city as xs:string in (Paris, Cambridge, London, Oxford, ...) return