1 <?xml version="1.0" encoding="UTF-8" ?>
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl='urn:schemas-microsoft-com:xslt'>
4 <xsl:key name="ProjectKey" match="Event" use="@Project" />
6 <xsl:template match="Events" mode="createProjects">
8 <xsl:for-each select="Event">
9 <!--xsl:sort select="@Project" order="descending"/-->
10 <xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Project != @Project)">
12 <xsl:variable name="ProjectName" select="@Project"/>
15 <xsl:attribute name="name">
16 <xsl:value-of select="@Project"/>
19 <xsl:if test="@Project=''">
20 <xsl:attribute name="solution">
21 <xsl:value-of select="@Solution"/>
25 <xsl:for-each select="key('ProjectKey', $ProjectName)">
26 <!--xsl:sort select="@Source" /-->
27 <xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Source != @Source)">
30 <xsl:attribute name="name">
31 <xsl:value-of select="@Source"/>
34 <xsl:variable name="Source">
35 <xsl:value-of select="@Source"/>
38 <xsl:for-each select="key('ProjectKey', $ProjectName)[ @Source = $Source ]">
41 <xsl:attribute name="error-level">
42 <xsl:value-of select="@ErrorLevel"/>
44 <xsl:attribute name="description">
45 <xsl:value-of select="@Description"/>
59 <xsl:template match="projects">
60 <xsl:for-each select="project">
61 <xsl:sort select="@Name" order="ascending"/>
63 <xsl:if test="@solution">Solution: <xsl:value-of select="@solution"/></xsl:if>
64 <xsl:if test="not(@solution)">Project: <xsl:value-of select="@name"/>
65 <xsl:for-each select="source">
66 <xsl:variable name="Hyperlink" select="@name"/>
67 <xsl:for-each select="event[@error-level='4']">
68  <A class="note"><xsl:attribute name="HREF"><xsl:value-of select="$Hyperlink"/></xsl:attribute><xsl:value-of select="@description"/></A>
74 <table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
76 <td nowrap="1" class="header" _locID="Filename">Filename</td>
77 <td nowrap="1" class="header" _locID="Status">Status</td>
78 <td nowrap="1" class="header" _locID="Errors">Errors</td>
79 <td nowrap="1" class="header" _locID="Warnings">Warnings</td>
82 <xsl:for-each select="source">
83 <xsl:sort select="@name" order="ascending"/>
84 <xsl:variable name="source-id" select="generate-id(.)"/>
86 <xsl:if test="count(event)!=count(event[@error-level='4'])">
90 <A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" alt="expand/collapse section" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.gif" width="9" ><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A> <xsl:value-of select="@name"/>
93 <xsl:if test="count(event[@error-level='3'])=1">
94 <xsl:for-each select="event[@error-level='3']">
95 <xsl:if test="@description='Converted'">Converted</xsl:if>
96 <xsl:if test="@description!='Converted'"><xsl:value-of select="@description"/></xsl:if>
99 <xsl:if test="count(event[@error-level='3'])!=1 and count(event[@error-level='3' and @description='Converted'])!=0">Converted
102 <td class="content"><xsl:value-of select="count(event[@error-level='2'])"/></td>
103 <td class="content"><xsl:value-of select="count(event[@error-level='1'])"/></td>
106 <tr class="collapsed" bgcolor="#ffffff">
107 <xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
110 <table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
112 <td colspan="7" class="issuetitle" _locID="ConversionIssues">Conversion Issues - <xsl:value-of select="@name"/>:</td>
115 <xsl:for-each select="event[@error-level!='3']">
116 <xsl:if test="@error-level!='4'">
118 <td class="issuenone" style="border-bottom:solid 1 lightgray">
119 <xsl:value-of select="@description"/>
132 <xsl:if test="count(source)!=1">
133 <xsl:value-of select="count(source)"/> files
135 <xsl:if test="count(source)=1">
140 Converted: <xsl:value-of select="count(source/event[@error-level='3' and @description='Converted'])"/><BR />
141 Not converted <xsl:value-of select="count(source) - count(source/event[@error-level='3' and @description='Converted'])"/>
143 <td class="foot"><xsl:value-of select="count(source/event[@error-level='2'])"/></td>
144 <td class="foot"><xsl:value-of select="count(source/event[@error-level='1'])"/></td>
150 <xsl:template match="Property">
151 <xsl:if test="@Name!='Date' and @Name!='Time' and @Name!='LogNumber' and @Name!='Solution'">
152 <tr><td nowrap="1"><b><xsl:value-of select="@Name"/>: </b><xsl:value-of select="@Value"/></td></tr>
156 <xsl:template match="UpgradeLog">
159 <META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" />
160 <link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css" />
161 <title>Conversion Report 
162 <xsl:if test="Properties/Property[@Name='LogNumber']">
163 <xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/>
166 <script language="javascript">
167 function outliner () {
168 oMe = window.event.srcElement
170 var child = document.all[event.srcElement.getAttribute("child",false)];
171 //if child element exists, expand or collapse it.
173 child.className = child.className == "collapsed" ? "expanded" : "collapsed";
176 function changepic() {
177 uMe = window.event.srcElement;
178 var check = uMe.src.toLowerCase();
179 if (check.lastIndexOf("upgradereport_plus.gif") != -1)
181 uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.gif"
185 uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.gif"
190 <body topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();">
191 <h1 _locID="ConversionReport">Conversion Report - <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/></h1>
193 <p><span class="note">
194 <b>Time of Conversion:</b>  <xsl:value-of select="Properties/Property[@Name='Date']/@Value"/>  <xsl:value-of select="Properties/Property[@Name='Time']/@Value"/><br/>
197 <xsl:variable name="SortedEvents">
199 <xsl:for-each select="Event">
200 <xsl:sort select="@Project" order="ascending"/>
201 <xsl:sort select="@Source" order="ascending"/>
202 <xsl:sort select="@ErrorLevel" order="ascending"/>
204 <xsl:attribute name="Project"><xsl:value-of select="@Project"/> </xsl:attribute>
205 <xsl:attribute name="Solution"><xsl:value-of select="/UpgradeLog/Properties/Property[@Name='Solution']/@Value"/> </xsl:attribute>
206 <xsl:attribute name="Source"><xsl:value-of select="@Source"/> </xsl:attribute>
207 <xsl:attribute name="ErrorLevel"><xsl:value-of select="@ErrorLevel"/> </xsl:attribute>
208 <xsl:attribute name="Description"><xsl:value-of select="@Description"/> </xsl:attribute>
214 <xsl:variable name="Projects">
215 <xsl:apply-templates select="msxsl:node-set($SortedEvents)/*" mode="createProjects"/>
218 <xsl:apply-templates select="msxsl:node-set($Projects)/*"/>
224 <b>Conversion Settings</b>
227 <xsl:apply-templates select="Properties"/>