home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:variable name="CheckID" select="'CheckIDHere'"></xsl:variable> <xsl:variable name="ScoreLookup"> <c score="0" url="Graphics/dash.gif" alttext="Check Not Performed"/> <c score="1" url="Graphics/excl_red.gif" alttext="Unable to scan"/> <c score="2" url="Graphics/x_red.gif" alttext="Missing security update"/> <c score="3" url="Graphics/x_gold.gif" alttext="Warning"/> <c score="4" url="Graphics/astrx.gif" alttext="Note message"/> <c score="5" url="Graphics/chek_grn.gif" alttext="Check passed"/> <c score="6" url="Graphics/info.gif" alttext="Additional information"/> <c score="7" url="Graphics/info.gif" alttext="Additional information"/> </xsl:variable> <xsl:template match="Col"> <td valign="top" style="padding-right:5px;"> <xsl:choose> <xsl:when test="@URL and @URL != '' and @URL != ' '"> <A target="_blank" href="{@URL}"><xsl:value-of select="."/></A> </xsl:when> <xsl:otherwise> <xsl:value-of select="."/> </xsl:otherwise> </xsl:choose> <xsl:if test="@REQUIREDNAME"> <br/><font size="-1">This update requires <xsl:value-of select="@REQUIREDNAME"/> to be installed first.</font> </xsl:if> </td> </xsl:template> <xsl:template match="SecScan"> <h1><xsl:value-of select="Check[@ID=$CheckID]/Advice"/></h1> <h2>Result Details<br /><br /><xsl:value-of select="Check[@ID=$CheckID]/Detail/@text"/></h2> <table id="TableID" width="100%" border="0" cellpadding="0" cellspacing="0" style="border: solid 0px #000000; padding-left: 10px; padding-right: 10px;"> <tr><td> <xsl:choose> <xsl:when test="Check[@ID=$CheckID]"> <xsl:choose> <xsl:when test="Check[@ID=$CheckID]/Detail/Row[@Grade='2']"> <xsl:choose> <xsl:when test="$CheckID = 174 or $CheckID = 10174 or $CheckID = 20174"> <span>Updates confirmed as missing are marked with a red X</span><br /> </xsl:when> <xsl:otherwise> <span>Security updates confirmed as missing are marked with a red X</span><br /> </xsl:otherwise> </xsl:choose> <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000"> <tr class="DetailHeader"> <td style="width:40" align="center" valign="middle"><nobr> Score </nobr></td> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col"> <td nowrap="nowrap"> <xsl:value-of select="."/> </td> </xsl:for-each> </tr> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='2']"> <tr> <td valign="top" align="center"> <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=2]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=2]/@url}" /> </td> <xsl:apply-templates select="Col" /> </tr> </xsl:for-each> </table> <br /> </xsl:when> </xsl:choose> <xsl:choose> <xsl:when test="Check[@ID=$CheckID]/Detail/Row[@Grade='3']"> <span>Products using a service pack not at the latest version or other warnings are marked with a yellow X</span><br /> <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000"> <tr class="DetailHeader"> <td style="width:40" align="center" valign="middle"><nobr> Score </nobr></td> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col"> <td nowrap="nowrap"> <xsl:value-of select="."/> </td> </xsl:for-each> </tr> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='3']"> <tr> <td valign="top" align="center"> <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=3]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=3]/@url}" /> </td> <xsl:apply-templates select="Col" /> </tr> </xsl:for-each> </table> <br /> </xsl:when> </xsl:choose> <xsl:choose> <xsl:when test="Check[@ID=$CheckID]/Detail/Row[@Grade='4']"> <span>Security updates that the tool cannot confirm as installed on the scanned computer are marked with a blue asterisk</span><br /> <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000"> <tr class="DetailHeader"> <td style="width:40" align="center" valign="middle"><nobr> Score </nobr></td> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col"> <td nowrap="nowrap"> <xsl:value-of select="."/> </td> </xsl:for-each> </tr> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='4']"> <tr> <td valign="top" align="center"> <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=4]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=4]/@url}" /> </td> <xsl:apply-templates select="Col" /> </tr> </xsl:for-each> </table> <br /> </xsl:when> </xsl:choose> <xsl:choose> <xsl:when test="($CheckID=174 or $CheckID=10174 or $CheckID=20174) and Check[@ID=$CheckID]/Detail/Row[@Grade='6']"> <span>The following updates are confirmed as missing but need to be installed on the administrative installation point by a system administrator. See KB 832665 for more information. </span><br /> <table cellpadding="0" cellspacing="0" style="border: solid 1px #000000"> <tr class="DetailHeader"> <td style="width:40" align="center" valign="middle"><nobr> Score </nobr></td> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Head/Col"> <td nowrap="nowrap"> <xsl:value-of select="."/> </td> </xsl:for-each> </tr> <xsl:for-each select="Check[@ID=$CheckID]/Detail/Row[@Grade='6']"> <tr> <td valign="top" align="center"> <IMG alt="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=6]/@alttext}" src="{document('')/*/xsl:variable[@name='ScoreLookup']/c[@score=6]/@url}" /> </td> <xsl:apply-templates select="Col" /> </tr> </xsl:for-each> </table> <br /> </xsl:when> </xsl:choose> </xsl:when> </xsl:choose> </td></tr> </table> If a service pack is listed, it is recommended that you install it prior to any other items listed. <xsl:if test="Check[@ID=$CheckID]/@Note1"> <p><b>Note 1:</b> <xsl:value-of select="Check[@ID=$CheckID]/@Note1"/></p> </xsl:if> <xsl:if test="Check[@ID=$CheckID]/@Note2"> <p><b>Note 2:</b> <xsl:value-of select="Check[@ID=$CheckID]/@Note2"/></p> </xsl:if> <xsl:if test="$CheckID = 174"> <p> <a href="http://go.microsoft.com/fwlink/?LinkId=19025" target="_blank">Click here</a> to read why these results may differ from the Microsoft Office Update web site detection results. </p> </xsl:if> </xsl:template> </xsl:stylesheet>