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'

Jeff
----- Original Message ----- 
From: "Thomas Zastrow" <[EMAIL PROTECTED]>
To: <xindice-users@xml.apache.org>
Sent: Sunday, December 07, 2003 11:07 PM
Subject: Step after step ...


> ... I'm approaching a solution, but there is just another question :-)
>
> With the text()-function I can access the content of a node via XPath:
>
> xindice xpath_query -c /db/corpora/taz -q "/corpus//token[text()]"
>
> Is it now possible to use something like pattern matches to get just some
of the tags? For example:
>
> <token>
> something
> </token>
>
> To access this tag using a query like "Give me all tags which are starting
with 'some'" or
> "Give me all tags that are ending with 'thing'" - or how can I solve this?
>
> Greetings and thanks,
>
> Tom
>
> P.S.:
> I hope that you don't think that I'm to stupid using Google or reading
some books ... I have already done that more than once and was not able to
get a hint how to solve this in XIndice ... all the examples I got where
XSLT and doesn't work in Xindice.
> And I post this message just because in the thread above with Antoine
nobodys answered ...
>
>
> -- 
> ----------------------------------------------------
> | So ein Unsinn sich einer Sekte anzuschliessen    |
> | wenn man Bier zuhause hat                        |
> |--------------------------------------------------|
> | http://www.thomas-zastrow.de                     |
> ----------------------------------------------------
>

Reply via email to