jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexandru Popescu ☀" <the.mindstorm.mailingl...@gmail.com>
Subject Re: Fwd: [jira] Created: (JCR-859) rep:excerpt() may return malformed XML
Date Wed, 25 Apr 2007 10:52:20 GMT
On 4/25/07, Marcel Reutegger <marcel.reutegger@gmx.net> wrote:
> Alexandru Popescu ☀ wrote:
> > Sorry to ask a beginner question but what is rep:excerpt() function
> > meant for?
>
> It creates a small XML fragment with text fragments where the query matches are
> marked up.
>
> example:
>
> //element(*, nt:resource)[jcr:contains(., 'peeter')]/rep:excerpt()
>
> on the jcr spec will returns something like:
>
> <excerpt><fragment>Acknowledgements This specification is the collaborative
> product of David Nuescheler (specification lead, Day Software),
> <highlight>Peeter</highlight> Piegaze (author, Day Software),
> and other members of the JSR 170 expert group, including</fragement><excerpt>
>

Thanks a lot for the explanations.  I have also found this that
provides an explanation:
https://issues.apache.org/jira/browse/JCR-820. My next question would
be: how is the fragment chosen (on what basis is the decission taken
from where to where is the fragment to be returned - or is it the
whole property value?).

bests,

./alex
--
.w( the_mindstorm )p.

> regards
>   marcel
>
Mime
View raw message