Thursday, July 31, 2008

Getting all values to debug xsl in Content Query Webpart

Just writing this because I always seem to be looking for it. This basically shows you what properties/fields and the values of these fields in the xsl when you are trying to render in a content query webpart or a dataview webpart.

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

Works like a charm. Thanks to everyone else who has blogged about this.

No comments: