Hi David,
> Thank you Geert !!!! I think this is the "missing piece"
> (from my brain).
> It was alluded to in a previous response but I just didn't get it ...
> To be clear ... the query component of cts:search( source ,
> query ) can contain references to documents and collections
> which are 'add in' to the source ? Or I guess more precisely
> refines the set of source documents. Is that right ?
The source argument, as you call it, is a searchable XPath expression that
results in a sequence of nodes that limits the scope of the search. It can be a
set of documents, fragment roots, or just paragraph or any other element from
any database document.
The query part acts as a filter, removing nodes from the list of search nodes
that do not satisfy the composed query.
It might be a bit confusing though: searchable XPath expressions can contain
predicates (filters) themselves, and you can translate some of the searchable
XPath patterns into queries as well.
But the big difference is though, that the search always returns a subset of
the source nodes..
> Could I also make use of this in cts:hilight ?
> Where my original question was to search a paragraph (which I already
> fetched) to find words which are matches to *other
> documents*). E.g.
> I could do something vaguely like this
>
> cts:hiliht( "A paragraph" ,
> a cts:query which includes cts:document-query ,
> <A href=page.xquery?term={$cts:text|}>{$cts:text}</A> );
>
> Or is that asking too much ?
I see no reason why cts:highlight would only support cts queries partially.
Haven't you tried yet? ;-)
Kind regards,
Geert
Drs. G.P.H. Josten
Consultant
http://www.daidalos.nl/
Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665 JZ Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
http://www.daidalos.nl/
KvK 27164984
De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general