We can have custom columns value as a result of our search if we add those in the mapped crawler properties.
After the site was crawled, through this xsl:
<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>
we can check if the value is into xml.
Now is the time to make a shape of our result.
To do that we need to make a xsl stylesheet.
In this post I don’t teach to you XSL (you can take a look here) but I will take your attention in how VS2010 works with it.
One of the most boring step todo with XSL is check if the generated XSLT is what we expect.
Maybe is better to write was a boring step because with Visual Studio we can debug the XSL and check step-by-step the result.
First of all we must open the xsl file in Visual Studio (I use the 2010 version):
In the properties windows specify the data source:
Now we can add breakpoint in our xsl, debug it and check the result:
For more information take a look at: http://msdn.microsoft.com/en-us/library/ms255602(v=vs.100).aspx
No comments:
Post a Comment