Wednesday, March 26, 2014

SPDisposeCheck xsl for viewing xml output

XML Structure we get after running SPDisposeCheck command line:

After applying XSL:

How to get this:

1. Save below code with name "SPDisposeChecker.xsl"

<?xml version="1.0"?>

<xsl:stylesheet version="1.0"

<xsl:template match="/">
    <h2><a href="">SPDisposeCheck</a></h2>
    <table border="1">
      <tr bgcolor="#9acd32">

      <xsl:for-each select="ArrayOfProblem/Problem">
          <td><xsl:value-of select="ID"/></td>
          <td><xsl:value-of select="Module"/></td>
          <td><xsl:value-of select="Method"/></td>
          <td><xsl:value-of select="Assignment"/></td>
          <td><xsl:value-of select="Line"/></td>
          <td><xsl:value-of select="Notes"/></td>


2. Add below line in xml obtained from command line

<?xml-stylesheet type="text/xsl" href="SPDisposeChecker.xsl"?>

3. Save the xml and double click on it.

No comments:

Post a Comment

SharePoint document metadata not updating

I faced a weird issue today, Metadata for document which has lookup column was not updating even after saving the item. There was no erro...