Wednesday, April 09, 2008

Display raw XML returned by SharePoint Search

On Search page, modify the XSLT of "Search Core Results" web part to

#?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="/">
#xmp>
#/xsl:template>
#/xsl:stylesheet>


Replace # with <

0 comments: