[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Edit search using xsl in  sharepoint / MOSS

Asked by dekempeneer in MS SharePoint, Extensible Markup Language (XML)

Tags: xsl xml sharepoint moss

I'm using the following xsl code for my search core result in sharepoint :

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ddwrt2="urn:frontpage:internal" >
  <xsl:template name="DisplayOfficeProfile">  
  <xsl:param name="title" />  
  <xsl:param name="dep" />  
  <xsl:param name="phone" />  
  <xsl:param name="skills" />  
  <xsl:param name="responsibility" />  
 
  <table>  
  <span class="psrch-Metadata">  
  <xsl:if test='string-length($title) &gt; 0'>  
  <tr>  
   <td><b>Functie: </b></td>  
 <td><xsl:value-of select="$title" /></td>  
  </tr>  
  </xsl:if>  
  <xsl:if test='string-length($dep) &gt; 0'>  
  <tr>  
   <td><b>Afdeling: </b></td>  
   <td><xsl:value-of select="$dep" />  </td>  
  </tr>  
  </xsl:if>  
  <xsl:if test='string-length($phone) &gt; 0'>  
  <tr>  
   <td><b>Telefoon nr: </b></td>  
   <td><xsl:value-of select="$phone" />  </td>  
  </tr>  
  </xsl:if>  
   <xsl:if test='string-length($skills) &gt; 0'>  
  <tr>  
   <td><b>Skills: </b></td>  
   <td><xsl:value-of select="$skills" />  </td>  
  </tr>  
  </xsl:if>  
  <xsl:if test='string-length($responsibility) &gt; 0'>  
  <tr>  
   <td><b>Responsibility: </b></td>  
   <td><xsl:value-of select="$responsibility" />  </td>  
  </tr>  
  </xsl:if>  
  </span>  
  </table>  
  <br/>  
</xsl:template>
     
</xsl:stylesheet>



But it does not show the table structure ??

Extra question : How do I show the users image as shown in the My Site ?

[+][-]11/05/09 04:57 AM, ID: 25748907Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625