sharepoint获取高亮搜索关键字

前段时间在做项目的时候,遇到自定义的搜索结果页,可是搜索了半天,找不到sharepoint是如何处理传进来的关键字的,因为要用自己的样式来处理,网上的大部分是在原有代码基础上的高亮更改。功夫不负有心人,终于被我找到了他的处理方式。

http://msdn.microsoft.com/en-us/library/ms584121.aspx的这段代码给了我提示

<hithighlightedsummary>
<c0>SharePoint</c0> <c1>namespace</c1> provides types and members that can be used for working with a <c0>SharePoint</c0> site <ddd /> a top-level <c2>class</c2> that represents a <c0>SharePoint</c0> site and provides access to its collection of subsites <ddd /> <c0>SharePoint</c0> <c1>namespace</c1> and a brief description of each.
</hithighlightedsummary>

在xslt中使用的时候就可以循环hithighlightedsummary这个节点, <xsl:value-of select="hithighlightedsummary/c0" />到c2是搜索的三个关键字,依次排下来的。

 

posted @ 2009-03-07 23:07  geek007  阅读(270)  评论(0编辑  收藏  举报