The cts:search() function takes as its first argument an $expression which
the documentation indicates "must be a fully searchable path expression."
Playing around with what this $expression could be, I found that, given
a $query
cts:element-attribute-value-query(
xs:QName("a:category"),
xs:QName("term"), "http://schema.highwire.org/Journal",
("lang=en"), 1)
I couldn't run a search using an $expression of two doc() calls:
cts:search(
(doc('/1.xml'), doc('/2.xml'))/hw:doc/a:entry,
$query)
And yet
cts:search(
xdmp:directory("/", "1")/hw:doc/a:entry,
$query)
works fine. This surprised me.
What I was really trying to do was run something like
cts:search(
(doc('/some/path/id.xml'),
xdmp:directory('/some/path/id/', 'infinity'))/hw:doc/atom:entry,
$query)
But I found I had to split it up into two separate cts:search
queries.
Jim
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
James A. Robinson [EMAIL PROTECTED]
Stanford University HighWire Press http://highwire.stanford.edu/
+1 650 7237294 (Work) +1 650 7259335 (Fax)
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general