People Search Data Fields (XSLT –> XML)

Within SharePoint 2007, the output of a “standard” search results webpart – and/or people search webpart – can be controlled using XSLT.

Most folk know it’s fairly tricky to deal with XSLT – not just the format of the markup, but also determining what values are in the data source.

Found a great tip from Novotronix, with a small piece of XSLT that shows ALL data elements. 

(1) Click the “XSL Editor” button.

(2) Replace the XSLT with the chunk from here.

2

(3) Click Save

The output shown will now look just like a plain chunk of XML.

1

Here’s the XML chunk you need (as detailed in the referenced blog post)

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform&quot; >
<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>

Advertisements

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