xslt Hithighlighting and translate() RRS feed

  • Question

  • This is part of the XML i get from FAST Search Server:


            <HHTitle />
            <organizationfullpath hashh="2">
    			Operations;Operational Functions;
    			;Application and Integration;
    				Business Support

    What I need to do is replace all ";" with "|" and make sure that the hithighlighting is still active, thats the stuff inside the <c0> tags.


    I have done updates to the original stylesheet used by the people core presentation webpart (SharePoint 2010 Ent. Search Site template). This is the template (pipem) I added:

    <xsl:template name="pipem">
        <xsl:param name="hh" />
    	<xsl:for-each select="$hh/descendant-or-self::*">
    		<xsl:when test="self::text()">
    			<xsl:value-of select='translate (., ";", "|")' />
    			<xsl:apply-templates select="."/>

    The HTML I would like should be like this:


    <li id="OrganisationfullpathField">
    	Operations|Operational Functions|<b>GHT</b>|Application and Integration|<b>Business Support</b>


    But I am not capable of creating xsl that handles it, anyone got any suggestions on how to do it, if even possible ?




    Wednesday, January 18, 2012 9:28 AM