The search component returns the search results to the requesting page as XML data. The Search Results Web Part then determines how to display these results, based on the Web Part’s display properties, and the XSLT Transformation (XSLT) specified in that Web Part's XSL property.
You can Edit/modify the search results view by modifying the XSL transform code for a particular Web Part. Edit/modify the web part property, under Display property un-check Use Location Visualization, the XSL Editor button gets activated. Click the button and add the below xml in.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<xsl:copy-of select="*"/>
</xsl:template>
</xsl:stylesheet>
The xml is displayed instead of xsl
Thanks for reading..
If you have a more elegant solution/suggestion – please post a comment… I’ll be happy to hear.
...HaPpY CoDiNg
Partha (Aurum)
Ref:
http://ybbest.wordpress.com/2012/03/13/how-to-customise-search-core-results-web-part-part1/
http://msdn.microsoft.com/en-us/library/ms584121(v=office.12).aspx
http://msdn.microsoft.com/en-us/sp2010devtrainingcourse_extendingsharepointsearchlab_topic3
http://msdn.microsoft.com/en-us/library/ms584121(v=office.12).aspx
http://msdn.microsoft.com/en-us/library/ms546985(v=office.12).aspx
http://msdn.microsoft.com/en-us/library/ms584121(v=office.12).aspx
No comments:
Post a Comment