Scenario:
You want to customize the search results page.
Solution:
Apply a new XSLT the 'Search Core Results' webpart, to make it simpler you can look at the result XML using the below XSLT.
Code:
<?xml version="1.0" encoding="UTF-8"?>Article:
<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:copy-of select="*"/></xmp>
</xsl:template>
</xsl:stylesheet>
http://www.codeplex.com/sctxsl/Release/ProjectReleases.aspx?ReleaseId=12070 ( XSL Samples )
http://msdn.microsoft.com/en-us/library/ms550732.aspx
http://blogs.catapultsystems.com/matthew/archive/2008/08/28/create-a-xml-test-page-for-search-results.aspx
0 comments:
Post a Comment