On Mon, 8 Dec 2003 09:33:03 -0800
"Jeff Greif" <[EMAIL PROTECTED]> wrote:
> Take a look at the XPath spec. I think you can test for prefix, suffix and
> containment as well as equality of text, e.g.
> starts_with(text(), 'something') or contains(text(), 'something') as well as
> text()='something'
Thank you. I tried this:
[EMAIL PROTECTED] tom]$ xindice xpath_query -c /db/corpora/taz -q
"/corpus//token[contains(text(), 'D')]"
[EMAIL PROTECTED] tom]$ xindice xpath_query -c /db/corpora/taz -q
"/corpus//token[starts_with(text(), 'D')]"
[EMAIL PROTECTED] tom]$ xindice xpath_query -c /db/corpora/taz -q
"/corpus//token[text()='Dax']"
and there are a lot of tokens which contains a 'D' ... (at the beginning, in
the middle and in the end) ... the result is empty.
Sorry for asking so many questions ...
Greetings,
Tom
--
----------------------------------------------------
| So ein Unsinn sich einer Sekte anzuschliessen |
| wenn man Bier zuhause hat |
|--------------------------------------------------|
| http://www.thomas-zastrow.de |
----------------------------------------------------