> I’ve encountered a problem while moving from 3.2 to 4.1. It seems like > XQuery dialect 1.0-ml is handling ampersand slightly different from 0.9-ml. > > > > Suppose I have the file: > > > > <root> > > <item type=”title”>Radiology & Ultrasound</item> > > </root> > > > > Located in /data/store/items/ > > > > I am writing a simple query just to illustrate the problem: > > > > xdmp:directory(“/data/store/items/”, “infinity”)//it...@type=’title’][. = > ‘Radiology & Ultrasound’] > > > > Under 3.2 it returns me the <item> node. Great! But under 4.1 I just get the > empty sequence (replacing & with & gives no effect). So could anyone > please suggest another idea of matching ampersand-containing strings in 4.1 > environment?
Are you sure the problem is the ampersand? What happens if you sanity check that it should return something (for example change the predicate to [starts-with(., 'Radiology')] ) -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/ _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
