Hi All,
I created two html pages - one is to perform a search and another one is to
display the result.
I am getting search words from user in first html page and passing it to the
next page where I am using cts query to perform search in the database.
In the second html page (testclient-results.xqy), I am using the below code to
display index number followed by a space and then followed by document title.
for $doc at $index in $docs[1 to 20]
return
<p>
<span>
{
let $title:=$doc//title
return concat($index," ",$title[1])
}
</span>
</p>
But I am not able to display the document title using the above code. When I am
using return concat($index," ",$doc), I am getting whole document in the result
page.
Am I missing something here? Please guide me.
Thanks,
Subramani
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general