SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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" />

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
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


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.