home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- ==================================================================== -->
- <!-- ============ Copyright (c) 2006 Microsoft Corporation ============= -->
- <!-- ==================================================================== -->
-
-
-
-
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
- <xsl:output method="xml" indent="yes" />
-
-
-
-
- <!-- ============================================ -->
- <!-- ========== VARIABLE SECTION START ========== -->
- <!-- ============================================ -->
- <xsl:variable name="NEWLINE">
- <xsl:text>
</xsl:text>
- </xsl:variable>
-
- <xsl:variable name="LOWERCASE" select="'abcdefghijklmnopqrstuvwxyz'" />
- <xsl:variable name="UPPERCASE" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'" />
- <!-- ========================================== -->
- <!-- ========== VARIABLE SECTION END ========== -->
- <!-- ========================================== -->
-
-
-
-
- <xsl:template match="/">
- <!-- ============================== -->
- <!-- ==== SystemList Transform ==== -->
- <!-- ============================== -->
- <xsl:if test="//SystemSpec">
- <xsl:call-template name="CommonSystemList" />
- </xsl:if>
-
- </xsl:template>
-
- <!-- ====================================== -->
- <!-- ========== SystemList START ========== -->
- <!-- ====================================== -->
- <xsl:template name="CommonSystemList">
- <Log>
- <!-- ====================================== -->
- <!-- ============ Devices START =========== -->
- <!-- ====================================== -->
- <xsl:element name="DeviceList">
-
- <!-- ============================================== -->
- <!-- ========== SystemSpec SECTION START ========== -->
- <!-- ============================================== -->
- <xsl:if test="//SystemSpec">
- <xsl:element name="SystemSpec">
-
- <!-- =========================================================== -->
- <!-- == BIOS INFORMATION SECTION == -->
- <!-- =========================================================== -->
- <xsl:element name="BiosInfo">
-
- <xsl:attribute name="Manufacturer">
- <xsl:value-of select="//SystemSpec/PingBackInfo/@manufacturer" />
- </xsl:attribute>
-
- <xsl:attribute name="Model">
- <xsl:value-of select="//SystemSpec/PingBackInfo/@model" />
- </xsl:attribute>
-
- <xsl:attribute name="BiosName">
- <xsl:value-of select="//SystemSpec/PingBackInfo/@biosName" />
- </xsl:attribute>
-
- <xsl:attribute name="BiosVersion">
- <xsl:value-of select="//SystemSpec/PingBackInfo/@biosVersion" />
- </xsl:attribute>
-
- <xsl:attribute name="BiosDate">
- <xsl:value-of select="//SystemSpec/PingBackInfo/@biosDate" />
- </xsl:attribute>
-
- </xsl:element>
-
- <!-- =========================================================== -->
- <!-- == MEDIA INFORMATION SECTION == -->
- <!-- =========================================================== -->
- <xsl:element name="MediaInfo">
-
- <xsl:attribute name="DvdWriter">
- <xsl:value-of select="//SystemSpec/MediaInfo/@dvdWriter" />
- </xsl:attribute>
-
- <xsl:attribute name="DvdReader">
- <xsl:value-of select="//SystemSpec/MediaInfo/@dvdReader" />
- </xsl:attribute>
-
- </xsl:element>
-
- <!-- =========================================================== -->
- <!-- == Exclude any of the following: == -->
- <!-- == == -->
- <!-- == InstalledDriver element without matchingID attribute == -->
- <!-- == == -->
- <!-- =========================================================== -->
- <xsl:for-each select="//Device">
-
- <xsl:element name="Device">
-
- <xsl:attribute name="Id">
- <xsl:value-of select="./HWID[1]" />
- </xsl:attribute>
-
- <xsl:for-each select="./HWID">
- <xsl:element name="HwId">
- <xsl:attribute name="Id">
- <xsl:value-of select="." />
- </xsl:attribute>
-
- <xsl:attribute name="Sequence">
- <xsl:value-of select="position()-1" />
- </xsl:attribute>
-
- </xsl:element>
- </xsl:for-each>
-
- <xsl:for-each select="./COMPID">
- <xsl:element name="CompId">
- <xsl:attribute name="Id">
- <xsl:value-of select="." />
- </xsl:attribute>
-
- <xsl:attribute name="Sequence">
- <xsl:value-of select="position()-1" />
- </xsl:attribute>
-
- </xsl:element>
- </xsl:for-each>
-
- <xsl:for-each select="./InstalledDriver">
- <xsl:element name="InstalledDriver">
- <xsl:attribute name="MatchingId">
- <xsl:value-of select="@matchingID" />
- </xsl:attribute>
-
- <xsl:attribute name="DriverVerDate">
- <xsl:value-of select="@driverVerDate" />
- </xsl:attribute>
-
- <xsl:attribute name="DriverVerVersion">
- <xsl:value-of select="@driverVerVersion" />
- </xsl:attribute>
-
- <xsl:attribute name="Class">
- <xsl:value-of select="@class" />
- </xsl:attribute>
-
- <xsl:attribute name="Manufacturer">
- <xsl:value-of select="@manufacturer" />
- </xsl:attribute>
-
- <xsl:attribute name="Provider">
- <xsl:value-of select="@provider" />
- </xsl:attribute>
-
- <xsl:attribute name="Model">
- <xsl:value-of select="@model" />
- </xsl:attribute>
-
- </xsl:element>
- </xsl:for-each>
-
- </xsl:element>
-
- </xsl:for-each>
-
- </xsl:element>
- </xsl:if>
- <!-- ============================================ -->
- <!-- ========== SystemSpec SECTION END ========== -->
- <!-- ============================================ -->
-
- </xsl:element>
- <!-- ====================================== -->
- <!-- ============ Devices END ============= -->
- <!-- ====================================== -->
- </Log>
-
- </xsl:template>
- <!-- ====================================== -->
- <!-- ========== SystemList END ============ -->
- <!-- ====================================== -->
-
- </xsl:stylesheet>
-
-
-
-