Handy XSLT Tag to output XML data

Many a time we want to display the incoming XML in the XSLT transformation that we are doing. this is specially true when we are working with SharePoint and we do not know the XML format of the incoming XML Data. the XMP tag is a easy way to out the incoming XML to the screen. Just place this in your root tag and refresh the browser and the incoming XML data is displayed
Make sure that any other tags in the root tag are commented out before you run the xslt.
<xsl:template match="/">
<xmp>
<xsl:copy-of select="/"/>
</xmp><
!--<xsl:call-template name="dvt_1"/>--></xsl:template>


Comments

Popular posts from this blog

Print from WPF using ReportViewer Control

Printing SSRS 2008 R2 Reports from C#.

Using IOptions class in .Net Core Unit Testing.