开发者

Sharepoint - CQWP and Announcements Body

开发者 https://www.devze.com 2023-02-17 09:16 出处:网络
I\', trying to display the Body property of an Annou开发者_如何学运维ncements List in my CQWP, but it is always blank.

I', trying to display the Body property of an Annou开发者_如何学运维ncements List in my CQWP, but it is always blank.

In CommonViewFields I've tried to set Body type to Text, RichHTML, Note... all with no result. Also, as suggested elsewhere. I've tried disable-output-escaping="yes" in the xsl. Nothing changed.

Printing out the passed key / values reveals that Body is empty. It should be not.

<xsl:for-each select="@*">
    Key:<xsl:value-of select="name()" />
    Value:<xsl:value-of select="."/>
</xsl:for-each>

Any help?


Generally when you need to output HTML that exists in your data source (or any kind of "result tree"), try invoking the xsl:copy-of element.

To use your example, it would look like:

<xsl:for-each select="@*">
    Key:<xsl:value-of select="name()" />
    Value:<xsl:copy-of select="." />
<xsl:for-each select="@*">
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号