Hi all, I am testing this query from the command line and I cannot see why the following does not work: xindice xpath -c /db/test -q "//doc/userID[contains(.,'Jack')]" or xindice xpath -c /db/test -q "//doc[contains(userID,'Jack')]" gives me the error message: 'Jack')]""=="" was unexpected at this time.
Can anoybody see why? Regards, Boris ----- Original Message ----- From: "Upayavira" <[EMAIL PROTECTED]> To: <xindice-users@xml.apache.org> Sent: Friday, January 23, 2004 12:23 PM Subject: Re: XPath query with an apostrophe > Vadim Gritsenko wrote: > > > Terry Rosenbaum wrote: > > > >> Try /doc[contains(title,"fo'o")] ... Double quotes work too. > > > > > > > > I think that /doc[contains(title,"fo"o")] also should work, right? > > > > Vadim > > > Hmm. This is a pain. I want to use the XMLDBSource in Cocoon for this - > someone can type a value into a form, click 'search', and it'll build up > an XPath query with the value they enter. I therefore don't have the > ability to replace an apostrophe with ' as there's no Java code of > mine involved.... Hmmm. Any ideas? > > Regards, Upayavira > > >