home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 September
/
Chip_2004-09_cd1.bin
/
zkuste
/
system
/
download
/
secanal
/
MBSASetup-en.msi
/
Data.Cab
/
officeadapt.xsl
< prev
next >
Wrap
Extensible Markup Language
|
2004-01-16
|
3KB
|
89 lines
<?xml version="1.0" encoding="utf-8"?>
<!--
This converts the office inventory report to mbsa xml format
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:variable name="NoUpdatesMissingText" select="'NoUpdatesMissingTextHere'"></xsl:variable>
<xsl:param name="UpdateCount" select="count((//ADMINAPPLICABLE|//APPLICABLE)/PATCH[@EXPIRED!='True'])"/>
<xsl:template match="PATCH">
<xsl:param name="grade"/>
<xsl:param name="baseidneeded" select="@BASELINEIDREQUIRED"/>
<Row>
<xsl:attribute name="Grade"><xsl:value-of select="$grade"/></xsl:attribute>
<Col>
<xsl:attribute name="URL"><xsl:value-of select="@URL"/></xsl:attribute>
<xsl:if test="@BASELINEIDREQUIRED">
<xsl:attribute name="REQUIREDNAME">
<xsl:value-of select="(//ADMINAPPLICABLE|//APPLICABLE)/PATCH[@EXPIRED!='True' and @PATCHID=$baseidneeded]/@NAME" />
</xsl:attribute>
</xsl:if>
<xsl:value-of select="@NAME"/>
</Col>
</Row>
</xsl:template>
<xsl:template match="/">
<Results>
<Check ID="174"
Grade="--filled in below--"
Type="5"
Cat="1"
Rank="12"
Name="Office Security Updates"
URL1="help/check5311.html"
URL2="help/check5311fix.html">
<xsl:if test="/INVENTORY/@DETINFOBUILD">
<xsl:attribute name="DataVersionName">Office update database version:</xsl:attribute>
<xsl:attribute name="DataVersion">
<xsl:value-of select="/INVENTORY/@DETINFOBUILD" />
</xsl:attribute>
</xsl:if>
<xsl:if test="$UpdateCount > 0">
<xsl:attribute name="Grade">2</xsl:attribute>
<xsl:if test="$UpdateCount = 1">
<Advice>1 security update is missing.</Advice>
</xsl:if>
<xsl:if test="$UpdateCount > 1">
<Advice><xsl:value-of select="$UpdateCount"/> security updates are missing.</Advice>
</xsl:if>
<Detail>
<Head>
<Col>Update</Col>
</Head>
<xsl:apply-templates select="//APPLICABLE/PATCH[@EXPIRED!='True']">
<xsl:with-param name="grade">2</xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="//ADMINAPPLICABLE/PATCH[@EXPIRED!='True']">
<xsl:with-param name="grade">6</xsl:with-param>
</xsl:apply-templates>
</Detail>
</xsl:if>
<xsl:if test="$UpdateCount = 0">
<xsl:attribute name="Grade">5</xsl:attribute>
<Advice><xsl:value-of select="$NoUpdatesMissingText"/></Advice>
</xsl:if>
</Check>
</Results>
</xsl:template>
</xsl:stylesheet>