Hi Neil, Your client should upgrade their MLJAM library to 1.2.1 which fixes this. You probably already did, which is why you don't have a problem.
http://xqzone.marklogic.com/svn/mljam/releases/ -jh- On Jan 21, 2010, at 1:34 PM, Neil Bradley wrote: > Hi, > > I am using 4.1-1 and do not have a problem. My client is using 4.1-4 and gets > the following error, which I have pinpointed to the MLJAM function here (the > second replace): > > define function jam:_escape-string( > $s as xs:string > ) as xs:string > { > (: These replaces funny because arg2 is a regexp and arg3 is a literal :) > let $s := replace($s, '\\', '\\') (: \ replaced with \\ :) > let $s := replace($s, '"', '\"') (: " replaced with \" :) > let $s := replace($s, '
', '\n') > return $s > } > > Has the interpretation of the fn:replace() function changed in the latest > version? How to I overcome this problem and get MLJAM working again? > > XDMP-BADREP: (err:FORX0004) > fn:replace("data/internationalSwapsAndDerivativesAssociation/masterAgreement...", > """, "\"") -- Invalid replacement string: \" > in /jam.xqy, on line 634, > > Thanks. > > Neil. > > > _______________________________________________ > General mailing list > [email protected] > http://xqzone.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://xqzone.com/mailman/listinfo/general
