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.

198 lines
5.9 KiB

  1. <HTML>
  2. <HEAD>
  3. <STYLE>
  4. BODY { font-family:Verdana; font-size:9pt; margin:0px; color:teal; }
  5. .instructions { font-style:italic; text-align:right; color:gray; margin-left:.5em; }
  6. .headline { background-color:teal; color:white; font-family:Arial Black; font-size:16pt;
  7. text-align:center; padding-top:1em; }
  8. .group { font-family:Arial Black; font-size:14pt; margin-top:.5em; margin-left:.5em;
  9. margin-bottom:.5em; }
  10. .button { font-family:Verdana; font-size:10pt; font-weight:bold; text-align:right;
  11. color:gray; }
  12. .arrow { font-family:Webdings; }
  13. </STYLE>
  14. </HEAD>
  15. <SCRIPT>
  16. var source;
  17. var style;
  18. var sourceURL;
  19. var styleURL;
  20. var viewingSrc;
  21. // ----- Scripts to control XSL Processing ------
  22. function update()
  23. {
  24. if (style.documentElement && source.documentElement)
  25. {
  26. parent.results.display(source.transformNode(style));
  27. }
  28. }
  29. function changeXML(xmldoc)
  30. {
  31. if (viewingSrc)
  32. {
  33. styleURL = sourceURL;
  34. }
  35. sourceURL = xmldoc;
  36. source.load(sourceURL);
  37. if (viewingSrc)
  38. {
  39. viewingSrc = false;
  40. style.load(styleURL);
  41. }
  42. update();
  43. }
  44. function changeXSL(xsldoc)
  45. {
  46. if (!viewingSrc)
  47. {
  48. styleURL = xsldoc;
  49. style.load(styleURL);
  50. }
  51. else
  52. {
  53. sourceURL = xsldoc;
  54. source.load(sourceURL);
  55. }
  56. update();
  57. }
  58. function viewXSL()
  59. {
  60. if (!viewingSrc)
  61. {
  62. changeXML(styleURL);
  63. changeXSL("raw-xml.xsl");
  64. viewingSrc = true;
  65. }
  66. }
  67. </SCRIPT>
  68. <SCRIPT>
  69. // ----- Scripts to activate buttons ------
  70. var oldXMLitem;
  71. var oldXSLitem;
  72. function over(item)
  73. {
  74. item.style.color = "black";
  75. }
  76. function out(item) {
  77. item.style.color = "gray";
  78. }
  79. function select(group, item) {
  80. if (group == "xml") {
  81. oldXMLitem.style.textDecoration = "";
  82. oldXMLitem = item;
  83. } else {
  84. oldXSLitem.style.textDecoration = "";
  85. oldXSLitem = item;
  86. }
  87. item.style.textDecoration = "underline";
  88. }
  89. // called by parent frame when the whole frameset is ready
  90. function init()
  91. {
  92. oldXMLitem = document.all.item("first-XML-item");
  93. select("xml", oldXMLitem);
  94. oldXSLitem = document.all.item("first-XSL-item");
  95. select("xsl", oldXSLitem);
  96. source = new ActiveXObject("Microsoft.XMLDOM");
  97. source.async = false;
  98. style = new ActiveXObject("Microsoft.XMLDOM");
  99. style.async = false;
  100. changeXML("diska.xml");
  101. changeXSL("raw-xml.xsl");
  102. }
  103. </SCRIPT>
  104. <BODY>
  105. <DIV CLASS="headline">CIM Disk&nbsp;Viewer</DIV>
  106. <DIV CLASS="instructions">
  107. Select a <B>disk</B> and an <B>XSL stylesheet</B>
  108. with which to view it. The results will appear in the frame at left. </DIV>
  109. <DIV CLASS="group"> Disks
  110. <DIV CLASS="button" ID="first-XML-item"
  111. onMouseOver="over(this)"
  112. onMouseOut="out(this)"
  113. onClick='changeXML("diska.xml"); select("xml",this)'>
  114. Disk
  115. A<SPAN CLASS="arrow">4</SPAN> </DIV>
  116. <DIV CLASS="button"
  117. onMouseOver="over(this)"
  118. onMouseOut="out(this)"
  119. onClick='changeXML("diskc.xml"); select("xml",this)'>
  120. Disk
  121. C<SPAN CLASS="arrow">4</SPAN> </DIV>
  122. <DIV CLASS="button"
  123. onMouseOver="over(this)"
  124. onMouseOut="out(this)"
  125. onClick='changeXML("diskd.xml"); select("xml",this)'>
  126. Disk
  127. D<SPAN CLASS="arrow">4</SPAN> </DIV>
  128. <DIV CLASS="button"
  129. onMouseOver="over(this)"
  130. onMouseOut="out(this)"
  131. onClick='changeXML("diske.xml"); select("xml",this)'>
  132. <SPAN CLASS="arrow"><FONT face=Verdana>Disk
  133. E</FONT>4</SPAN> </DIV>
  134. <DIV CLASS="button"
  135. onMouseOver="over(this)"
  136. onMouseOut="out(this)"
  137. onClick='changeXML("diskf.xml"); select("xml",this)'>
  138. <SPAN CLASS="arrow"><FONT face=Verdana>Disk
  139. F</FONT>4</SPAN> </DIV></DIV>
  140. <DIV CLASS="instructions">
  141. The XML data displayed here is
  142. taken from live data captured from Microsoft's implementation of CIM. </DIV>
  143. <DIV CLASS="group">XSL Stylesheets
  144. <DIV CLASS="button" ID="first-XSL-item"
  145. onMouseOver="over(this)"
  146. onMouseOut="out(this)"
  147. onClick='changeXSL("raw-xml.xsl"); select("xsl",this)'>
  148. <SPAN CLASS="arrow"><FONT face=Verdana>Raw
  149. XML</FONT>4</SPAN> </DIV>
  150. <DIV CLASS="button"
  151. onMouseOver="over(this)"
  152. onMouseOut="out(this)"
  153. onClick='changeXSL("wmimof20.xsl"); select("xsl",this)'>
  154. <SPAN CLASS="arrow"><FONT face=Verdana>Managed
  155. Object Format (MOF)</FONT>4</SPAN> </DIV>
  156. <DIV CLASS="button"
  157. onMouseOver="over(this)"
  158. onMouseOut="out(this)"
  159. onClick='changeXSL("property-table.xsl"); select("xsl",this)'>
  160. <SPAN CLASS="arrow"><FONT face=Verdana>Property Information</FONT>4</SPAN> </DIV>
  161. <DIV CLASS="button"
  162. onMouseOver="over(this)"
  163. onMouseOut="out(this)"
  164. onClick='changeXSL("summary.xsl"); select("xsl",this)'>
  165. <SPAN CLASS="arrow"><FONT face=Verdana>At-a-Glance</FONT>4</SPAN> </DIV>
  166. </DIV>
  167. <DIV CLASS="instructions">
  168. Stylesheet source can be viewed
  169. with the "raw-xml" stylesheet by clicking here. Click on a data file to resume
  170. viewing XML data. </DIV>
  171. <DIV CLASS="group">
  172. <DIV CLASS="button"
  173. onMouseOver="over(this)"
  174. onMouseOut="out(this)"
  175. onClick='viewXSL(); select("xml",this)'>
  176. view xsl stylesheet<SPAN CLASS="arrow">4</SPAN> </DIV></DIV>
  177. </BODY>
  178. </HTML>