Export (0) Print
Expand All

How to: View and Edit the Search Results XSLT Transformation

The Search Core Results Web Part XSLT transformation (XSLT) is specified in the Web Part's XSL property. You can view and modify this property from the Search Core Results Web Part tool pane.

To access the XSL property of the Search Core Results Web Part

  1. In your browser, navigate to the results page URL:

    http://<ServerName>/SearchCenter/Pages/results.aspx
    
  2. Click the Site Actions link, and then click Edit Page.

  3. In the Search Core Results Web Part, click the edit down arrow to display the Web Part menu, and then click Modify Shared Web Part. This opens the Search Core Results Web Part tool pane.

  4. Click Data Form Web Part to display the XSL Editor node.

  5. Click the Source Editor button.

    This opens the Text Entry window for the Web Part's XSL property. You can modify the XSLT directly in this window; however, you may find it easier to copy the code to a file. You can then edit that file using an application such as Visual Studio 2005. After you have finished editing the file, you can copy the modified code back into the Text Entry window and save your changes to the Search Core Results Web Part.

NoteNote:

You should save a copy of the original code from the XSL property before making changes to it, so that you can easily revert back to the original if needed. Any modifications you make to the XSL property will apply to only that specific instance of the Search Core Results Web Part.

See Also

Community Additions

ADD
Show:
© 2014 Microsoft