Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
3.2 KiB

  1. <?xml version="1.0"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
  3. <xsl:template match="/">
  4. <DIV STYLE="padding:.3in .1in .3in .3in; font-family:Arial Black; background-color:chocolate; background-image=URL(swallows.jpg)">
  5. <xsl:for-each select="CIM/DECLARATION/DECLGROUP/VALUE.OBJECT/INSTANCE">
  6. <TABLE>
  7. <TR>
  8. <TD COLSPAN="2">
  9. <xsl:apply-templates select="PROPERTY[@NAME='Description']"/>
  10. </TD>
  11. <TD STYLE="padding-left:1em">
  12. <DIV STYLE="margin-left:2em; text-indent:-1.5em; line-height:80%; font-size:18pt; color:yellow">
  13. Device ID <SPAN STYLE="color:white"><xsl:value-of select="PROPERTY[@NAME='DeviceID']/VALUE"/></SPAN>
  14. </DIV>
  15. <DIV STYLE="margin-left:2em; text-indent:-1.5em; line-height:80%; margin-top:1em; font-style:italic; font-size:18pt; color:white">
  16. <xsl:value-of select="PROPERTY[@NAME='Description']/VALUE"/>
  17. </DIV>
  18. </TD>
  19. </TR>
  20. <TR>
  21. <TD><DIV STYLE="color:white; font:10pt. Verdana; font-style:italic; font-weight:normal"><xsl:value-of select="PROPERTY[@NAME='FileSystem']/VALUE"/></DIV></TD>
  22. <TD><DIV STYLE="text-align:right; color:white; font:10pt. Verdana; font-style:italic; font-weight:normal"><xsl:value-of select="PROPERTY[@NAME='VolumeSerialNumber']/VALUE"/></DIV></TD>
  23. <TD></TD>
  24. </TR>
  25. <TR>
  26. <TD COLSPAN="2">
  27. <DIV STYLE="margin:2px; padding:0em .5em; background-color:orange; color:white">
  28. Size: <xsl:value-of select="PROPERTY[@NAME='Size']/VALUE"/>
  29. </DIV>
  30. <DIV STYLE="margin:2px; padding:0em .5em; background-color:orange; color:white">
  31. FreeSpace: <xsl:value-of select="PROPERTY[@NAME='FreeSpace']/VALUE"/>
  32. </DIV>
  33. </TD>
  34. <TD STYLE="text-align:right; font:10pt Verdana; font-style:italic; color:yellow">
  35. <DIV STYLE="margin-top:.5em; font-weight:bold">
  36. <xsl:apply-templates select="PROPERTY[@NAME='SupportsFileBasedCompression']"/>
  37. </DIV>
  38. </TD>
  39. </TR>
  40. </TABLE>
  41. </xsl:for-each>
  42. </DIV>
  43. </xsl:template>
  44. <xsl:template match="PROPERTY[@NAME='Description']">
  45. <xsl:choose>
  46. <xsl:when test="VALUE[. $eq$ '3 1/2 Inch Floppy Drive']">
  47. <IMG src="J0174139.WMF" width="200" height="200"></IMG>
  48. </xsl:when>
  49. <xsl:when test="VALUE[. $eq$ 'CD-ROM Disc']">
  50. <IMG src="J0174137.WMF" width="200" height="200"></IMG>
  51. </xsl:when>
  52. <xsl:when test="VALUE[. $eq$ 'Network Connection']">
  53. <IMG src="BS00369.WMF" width="200" height="200"></IMG>
  54. </xsl:when>
  55. <xsl:otherwise>
  56. <IMG src="J0174133.WMF" width="200" height="200"></IMG>
  57. </xsl:otherwise>
  58. </xsl:choose>
  59. </xsl:template>
  60. <xsl:template match="PROPERTY[@NAME='SupportsFileBasedCompression']">
  61. <xsl:choose>
  62. <xsl:when test="VALUE[. $eq$ 'TRUE']">This device supports file-based compression</xsl:when>
  63. <xsl:otherwise>This device does NOT support file-based compression</xsl:otherwise>
  64. </xsl:choose>
  65. </xsl:template>
  66. </xsl:stylesheet>