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.

71 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/INSTANCE">
  6. <TABLE>
  7. <TR>
  8. <TD COLSPAN="2">
  9. <IMG src="MAGNIFY.WMF" width="200" height="200">
  10. </IMG>
  11. </TD>
  12. <TD STYLE="padding-left:1em">
  13. <xsl:for-each select="PROPERTY[@NAME='DeviceID']">
  14. <DIV STYLE="margin-left:2em; text-indent:-1.5em; line-height:80%; font-size:18pt; color:yellow">
  15. Device ID <SPAN STYLE="color:white"><xsl:value-of select="VALUE"/></SPAN>
  16. </DIV>
  17. </xsl:for-each>
  18. <xsl:for-each select="PROPERTY[@NAME='Description']">
  19. <DIV STYLE="margin-left:2em; text-indent:-1.5em; line-height:80%; margin-top:1em; font-style:italic; font-size:18pt; color:white">
  20. <xsl:value-of select="VALUE"/>
  21. </DIV>
  22. </xsl:for-each>
  23. </TD>
  24. </TR>
  25. <TR>
  26. <TD>
  27. <xsl:for-each select="PROPERTY[@NAME='FileSystem']">
  28. <DIV STYLE="color:white; font:10pt. Verdana; font-style:italic; font-weight:normal">
  29. <xsl:value-of select="VALUE"/>
  30. </DIV>
  31. </xsl:for-each>
  32. </TD>
  33. <TD>
  34. <xsl:for-each select="PROPERTY[@NAME='VolumeSerialNumber']">
  35. <DIV STYLE="text-align:right; color:white; font:10pt. Verdana; font-style:italic; font-weight:normal">
  36. <xsl:value-of select="VALUE"/>
  37. </DIV>
  38. </xsl:for-each>
  39. </TD>
  40. <TD>
  41. </TD>
  42. </TR>
  43. <TR>
  44. <TD COLSPAN="2">
  45. <xsl:for-each select="PROPERTY[@NAME='Size']">
  46. <DIV STYLE="margin:2px; padding:0em .5em; background-color:orange; color:white">
  47. Size: <xsl:value-of select="VALUE"/> Bytes
  48. </DIV>
  49. </xsl:for-each>
  50. <xsl:for-each select="PROPERTY[@NAME='FreeSpace']">
  51. <DIV STYLE="margin:2px; padding:0em .5em; background-color:orange; color:white">
  52. Free Space:
  53. <xsl:value-of select="VALUE"/> Bytes
  54. </DIV>
  55. </xsl:for-each>
  56. </TD>
  57. <TD STYLE="text-align:right; font:10pt Verdana; font-style:italic; color:yellow">
  58. <xsl:for-each select="PROPERTY[@NAME='SupportsFileBasedCompression']/VALUE[text()='FALSE']">
  59. <DIV STYLE="margin-top:.5em; font-weight:bold">This device does NOT support file-based compression</DIV>
  60. </xsl:for-each>
  61. <xsl:for-each select="PROPERTY[@NAME='SupportsFileBasedCompression']/VALUE[text()!='FALSE']">
  62. <DIV STYLE="margin-top:.5em; font-weight:bold">This device supports file-based compression</DIV>
  63. </xsl:for-each>
  64. </TD>
  65. </TR>
  66. </TABLE>
  67. </xsl:for-each>
  68. </DIV>
  69. </xsl:template>
  70. </xsl:stylesheet>