Custom Search Result Style Based On SharePoint Xslt Search Result Style

To make short of the matter.

There are enough comments for the default xslt. We can also learn more from the parameter names. But first you need to learn the xslt grammar such as select value, traverse, custom template and so on.

The main process is as follows:

1. <xsl:template match="/">, need not to take much care because it is just a entrance.

2. <xsl:template name="dvt_1.body">, the showing of search result body part.

3. <xsl:template match="Result">, the most important part for your customization. You can customize your own structure and style here. Pay attention to this part.

4. <xsl:template name="ResultDetail">, it is also an important part since it includes the details of search result such as description, open in browser link and so on.

PS: The logic of the xslt is a little complex so you'd better keep the xslt as much as possible unless you believe you are not going to refer them.

Enjoy it.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值