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'm trying to read the value of a multi-line, enhanced rich text field from a content query web part using a custom ItemStyle template in SP 2010. Even though it has a value, it keeps coming back as blank. The column type is described as "Multiple lines of text", with "Enhanced rich text (Rich text with pictures, tables, and hyperlinks)" enabled.

The column name is "Opening Hours". In the *.webpart, I've defined it using

<property name="CommonViewFields" 
<property name="DataColumnRenames" 

In the custom ItemStyle_ContactDetails.xsl, it's read using this simple loop:

<xsl:for-each select="@*">
   P:<xsl:value-of select="name()" /><br />
   v:<xsl:value-of select="." /><br />

When I import the web part and insert it into a page, it displays this for the opening hours:


I've triple checked to ensure the column has value. Other fields display their values in the web part, though. This is the only Enhanced rich text field I'm using in this list. I also tried changing the type to HTML and RichHTML to no avail. What am I doing wrong? Thanks.

share|improve this question
up vote 2 down vote accepted

You have to disable output escaping by adding disable-output-escaping="yes" to the element. It is covered in this post on MSDN.

share|improve this answer

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.