Sladescross's Blog

Blogging about Sharepoint related stuff

XSLT Search Results Web Part and Visual Studio November 28, 2010

Filed under: Search,XSLT — sladescross @ 7:50 pm

http://blog.lekman.com/2009/02/custom-search-results.html

The output of the search results is controlled using XSL and the stylesheet is editable via the “XSL Editor…” option of the web part. Personally, I like to edit the XSL within Visual Studio 2008 to use debugging and all the other great XML/XSL editing features available here.

To do this, I save the original XSL into a file (transform.xsl) and change the XSL so that it will output the raw results data:

1: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
2: <xsl:template match="/">
3: <xsl:copy-of select="node()" />
4: </xsl:template>
5: </xsl:stylesheet>
About these ads
 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.

Join 63 other followers