title: muenchian grouping, can someone please explain?
body: <p><strong>XSL:</strong></p>
  
  <p></p>
  
  <pre><code>&lt;xsl:template match="/"&gt;
  
      &lt;html&gt;
          &lt;head&gt;
              &lt;title&gt;RPT Report&lt;/title&gt;
              &lt;link rel="stylesheet" type="text/css" href="resource/rpt.css" media="screen"/&gt;
              &lt;script src="resource/sorttable.js"/&gt;
          &lt;/head&gt;
          &lt;body&gt;
              &lt;div style="margin: 10px;"&gt;
                  &lt;table class="rpt"&gt;
                      &lt;thead&gt;
                          &lt;tr&gt;
                              &lt;th&gt;Key&lt;/th&gt;
                              &lt;th&gt;Type&lt;/th&gt;
                              &lt;th&gt;Total&lt;/th&gt;
                              &lt;th&gt;Overview&lt;/th&gt;
                          &lt;/tr&gt;
                      &lt;/thead&gt;
                      &lt;tbody&gt;
                          &lt;td&gt;&lt;img src="resource/fatal.gif" alt="Violations in build"
                              title="Violations in build"/&gt;&lt;/td&gt;
                          &lt;td class="left" nowrap="nowrap"&gt;Violations&lt;/td&gt;
                          &lt;td&gt;&lt;xsl:value-of select="sum(report/resultset/@violation)"/&gt;&lt;/td&gt;
                          &lt;td rowspan="5"&gt;
                              &lt;img&gt;&lt;xsl:attribute name="src"&gt;
                                  &lt;xsl:value-of
                                      select="concat('http://chart.apis.google.com/chart?cht=p3&amp;amp;chd=t:', report/percentages/@violation, ',', report/percentages/@potential, ',', report/percentages/@recommendation, ',', report/percentages/@pRecommendation, ',', report/percentages/@manualcheck, '&amp;amp;chs=450x100&amp;amp;chl=Violation|Potential Violation|Recommendation|Potential Recommendation|Manual Check&amp;amp;chco=000000,ff0000,6277b5,46b0a5,ffff00')"
                                  /&gt;
                              &lt;/xsl:attribute&gt;&lt;/img&gt;
                          &lt;/td&gt;
  
                          &lt;tr&gt;
                              &lt;td&gt;&lt;img src="resource/error.gif" alt="Potential Violation in build"
                                  title="Potential Violation in build"/&gt;&lt;/td&gt;
                              &lt;td class="left"&gt;Potential Violation&lt;/td&gt;
                              &lt;td&gt;&lt;xsl:value-of select="sum(report/resultset/@potential)"/&gt;&lt;/td&gt;
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;
                                  &lt;img src="resource/published.gif" alt="Recommendations in build"
                                      title="Recommendations in build"/&gt;
                              &lt;/td&gt;
  
                              &lt;td class="left"&gt;Recommendation&lt;/td&gt;
  
  
                              &lt;td&gt;
                                  &lt;xsl:value-of select="sum(report/resultset/@recommendation)"/&gt;
                              &lt;/td&gt;
  
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;
                                  &lt;img src="resource/draft.gif" alt="Potential Recommendations in build"
                                      title="Potential Recommendations in build"/&gt;
                              &lt;/td&gt;
  
                              &lt;td class="left"&gt;Potential Recommendation&lt;/td&gt;
  
                              &lt;td&gt;
                                  &lt;xsl:value-of select="sum(report/resultset/pRecommendation)"/&gt;
                              &lt;/td&gt;
  
                          &lt;/tr&gt;
                          &lt;tr&gt;
                              &lt;td&gt;
                                  &lt;img src="resource/warning.gif" alt="Manual Checks in build"
                                      title="Warnings in build"/&gt;
                              &lt;/td&gt;
                              &lt;td class="left"&gt;Manual Check&lt;/td&gt;
  
                              &lt;td&gt;
                                  &lt;xsl:value-of select="sum(report/resultset/@manualcheck)"/&gt;
                              &lt;/td&gt;
  
                          &lt;/tr&gt;
                      &lt;/tbody&gt;
                  &lt;/table&gt;
                  &lt;br/&gt;
                  &lt;br/&gt;
  
                  &lt;xsl:apply-templates select="report"/&gt;
              &lt;/div&gt;
          &lt;/body&gt;
      &lt;/html&gt;
  &lt;/xsl:template&gt;
  
  
  
  &lt;xsl:template match="report"&gt;
      &lt;table class="rpt sortable"&gt;
          &lt;thead&gt;
              &lt;tr&gt;
                  &lt;th class="center"&gt;Filename&lt;/th&gt;
                  &lt;th class="center"&gt;Level&lt;/th&gt;
                  &lt;th class="center"&gt;GID&lt;/th&gt;
                  &lt;th class="center"&gt;Message&lt;/th&gt;
                  &lt;th class="center"&gt;XPath&lt;/th&gt;
                  &lt;th class="center"&gt;Line Number&lt;/th&gt;
                  &lt;th class="center"&gt;Help&lt;/th&gt;
              &lt;/tr&gt;
          &lt;/thead&gt;
          &lt;tbody&gt;
              &lt;xsl:apply-templates select="issue"&gt;
                  &lt;xsl:sort select="@filename" order="descending" data-type="text"/&gt;
              &lt;/xsl:apply-templates&gt;
          &lt;/tbody&gt;
      &lt;/table&gt;
  &lt;/xsl:template&gt;
  
  
  &lt;xsl:template match="issue"&gt;
      &lt;tr class="alt_0"&gt;
          &lt;td class="center"&gt;&lt;a href="{@infocenterURL}"&gt;&lt;xsl:value-of select="@filename"
              /&gt;&lt;/a&gt;&lt;/td&gt;
          &lt;td class="center"&gt;&lt;xsl:value-of select="@level"/&gt;&lt;/td&gt;
          &lt;td class="center"&gt;&lt;xsl:value-of select="@gid"/&gt;&lt;/td&gt;
          &lt;td class="center"&gt;&lt;xsl:value-of select="@message"/&gt;&lt;/td&gt;
          &lt;td class="center"&gt;&lt;xsl:value-of select="@xpath"/&gt;&lt;/td&gt;
          &lt;td class="center"&gt;&lt;xsl:value-of select="@linenum"/&gt;&lt;/td&gt;
          &lt;td class="center"&gt;&lt;a href="{@helplink}"&gt;More&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p></p>
  
  <p>The issue am having is that I can't seem to make it display both the <code>result set</code> template and the <code>report</code> template, further more its not applying the CSS. I did have a working copy that just needed muenchian grouping implementing but I took 1 step forward and 5 steps back attempting this :P</p>
  
  <p><strong>EDIT:</strong> Okay so the CSS is now working. Although its not retrieving the correct values from the xml.</p>
  
  <p><strong>EDIT:</strong> fixed those issues</p>
  
  <p><strong>XML:</strong></p>
  
  <pre><code>&lt;report created="2013-12-02 13:38:42.15" pluginname="sal"&gt;
  &lt;percentages manualcheck="0" pRecommendation="0" potential="69" recommendation="0" violation="30"/&gt;
  &lt;resultset created="2013-12-02 13:38:42.15" link="writers_reports/" manualcheck="0" name="" pRecommendation="0" potential="229" recommendation="0" violation="100"/&gt;
  &lt;issue filename="rpt_automation.html" gid="506" helplink="" infocenterURL="" level="Potential Violation" linenum="63" message="Ensure that, with the border or outline, the keyboard focus indicator is visible to users." xpath="/html/body/div[3]/img"/&gt;
  &lt;issue filename="rpt_summary.html" gid="506" helplink="" infocenterURL="" level="Potential Violation" linenum="61" message="Ensure that, with the border or outline, the keyboard focus indicator is visible to users." xpath="/html/body/div[3]/img"/&gt;
  &lt;issue filename="scan_results.html" gid="506" helplink="" infocenterURL="" level="Potential Violation" linenum="50" message="Ensure that, with the border or outline, the keyboard focus indicator is visible to users." xpath="/html/body/div[3]/img"/&gt;
  &lt;issue filename="what_is_rpt.html" gid="506" helplink="" infocenterURL="" level="Potential Violation" linenum="49" message="Ensure that, with the border or outline, the keyboard focus indicator is visible to users." xpath="/html/body/div[3]/img"/&gt;
  </code></pre>
  
  <p></p>