Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I've added a content query webpart (CQWP) to pull description (rich text) from a list and display it. I added the following custom template -

<xsl:template name="MyDescription" match="Row[@Style='AboutMY']" mode="itemstyle">   
      <xsl:value-of disable-output-escaping="yes" select="@Description" />
      <xsl:value-of disable-output-escaping="yes" select="@Markup" />
      <xsl:value-of disable-output-escaping="yes" select="@Department" />
</xsl:template>

Issues I've -

  1. I don't see any of my custom XSL parameters (Markup, Department) in the web part properties
  2. Eventhough I've mentioned output-escaping as yes I'm getting the html rendered as it is.

Any ideas?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

Try renaming the template to match the style:

<xsl:template name="MyDescription" match="Row[@Style='MyDescription']" mode="itemstyle"> 
share|improve this answer
    
Thanks. That did the trick. –  NLV Oct 24 '12 at 19:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.