Source code of Windows XP (NT5)
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.

113 lines
5.4 KiB

  1. <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" xmlns:fo="http://www.w3.org/TR/WD-xsl/FO" language="JSCRIPT">
  2. <!-- match the root of the xml data -->
  3. <xsl:template match="/">
  4. <TABLE id="TABLE0" class="table0" cellspacing ="0" style="table-layout:fixed">
  5. <THEAD id="THEAD1" height="15" onmousedown="mouseDown()">
  6. <TR style="display:none" height="1">
  7. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='true']" >
  8. <TD width="67" nowrap="true"></TD>
  9. <TD width="2" >
  10. <xsl:attribute name="id">x<xsl:eval>childNumber(this)</xsl:eval></xsl:attribute>
  11. </TD>
  12. </xsl:for-each>
  13. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='false']" >
  14. <TD style="display:none" width="67" nowrap="true"></TD>
  15. <TD style="display:none" width="2" >
  16. <xsl:attribute name="id">x<xsl:eval>childNumber(this)</xsl:eval></xsl:attribute>
  17. </TD>
  18. </xsl:for-each>
  19. <TD id='filler0' width="67" style="display:none" class="tableHeader" nowrap="true"></TD>
  20. <TD style="display:none" class="tableHeader" nowrap="true"></TD>
  21. <TD style="display:none" class="tableHeader" nowrap="true"></TD>
  22. </TR>
  23. <TR id="THEADHEADINGS0" dataRow="1" height="20">
  24. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='true']" >
  25. <TD class="tableHeader" nowrap="true">
  26. <xsl:attribute name="title">Sort by <xsl:value-of select="./@DisplayName"/></xsl:attribute>
  27. <xsl:attribute name="id"><xsl:eval>childNumber(this)</xsl:eval></xsl:attribute>
  28. <xsl:attribute name="onclick">doSingleClickSorting();
  29. </xsl:attribute>
  30. <xsl:if test=".[@Sort='descending']">
  31. <IMG src="images/downgif.gif"></IMG>
  32. </xsl:if>
  33. <xsl:if test=".[@Sort='ascending']">
  34. <IMG src="images/upgif.gif"></IMG>
  35. </xsl:if>
  36. <xsl:value-of select="./@DisplayName"/>
  37. </TD>
  38. <TD class="tableHeaderRowSizer">
  39. <xsl:attribute name="id">x<xsl:eval>childNumber(this)</xsl:eval></xsl:attribute>
  40. </TD>
  41. </xsl:for-each>
  42. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='false']">
  43. <TD style="display:none" class="tableHeader" nowrap="true">
  44. <xsl:attribute name="title">Sort by <xsl:value-of select="./@DisplayName"/></xsl:attribute>
  45. <xsl:attribute name="id"><xsl:eval>childNumber(this)</xsl:eval></xsl:attribute>
  46. <xsl:attribute name="onclick">doSingleClickSorting();
  47. </xsl:attribute>
  48. <xsl:value-of select="./@DisplayName"/>
  49. </TD>
  50. <TD style="display:none" class="tableHeaderRowSizer">
  51. <xsl:attribute name="id">x<xsl:eval>childNumber(this)</xsl:eval></xsl:attribute>
  52. </TD>
  53. </xsl:for-each>
  54. <TD id='filler1' style="display:none" class="tableHeader" nowrap="true"><br/></TD>
  55. <TD style="display:none" class="tableHeader" nowrap="true"></TD>
  56. <TD style="display:none" class="tableHeader" nowrap="true"></TD>
  57. </TR>
  58. </THEAD>
  59. </TABLE>
  60. <TABLE id="TABLE1" class="table1" cellspacing="0" style="table-layout:fixed" ondragstart="ignoreEvent()">
  61. <COLGROUP id="colgroup1" >
  62. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='true']" >
  63. <COL align="left"/>
  64. </xsl:for-each>
  65. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='false']" >
  66. <COL align="left" style="display:none" />
  67. </xsl:for-each>
  68. <COL id="fillerCol" style="display:none"></COL>
  69. <COL style="display:none"></COL>
  70. <COL style="display:none"></COL>
  71. </COLGROUP>
  72. <THEAD id="THEAD1" height="1" >
  73. <TR id="THEADHEADINGS" dataRow="1" height="10" style="display:none">
  74. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='true']" >
  75. <TD width="69" nowrap="true"></TD>
  76. </xsl:for-each>
  77. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='false']">
  78. <TD width="69" nowrap="true"></TD>
  79. </xsl:for-each>
  80. <TD style="display:none" class="tableHeader" nowrap="true"></TD>
  81. <TD style="display:none" class="tableHeader" nowrap="true"></TD>
  82. <TD style="display:none" class="tableHeader" nowrap="true"></TD>
  83. </TR>
  84. </THEAD>
  85. <TBODY scrollTop="5" id="TABLEBODY1" >
  86. <xsl:apply-templates select="CIM/INSTANCE"/>
  87. </TBODY>
  88. </TABLE>
  89. <DIV id="WhiteSpaceDiv" class="WhiteSpaceClass" width="100%">
  90. <DIV id="errorMessageDiv" class="errorMesgDivClass"></DIV>
  91. </DIV>
  92. <DIV id="lineDivLeft" style="display:none" class="lineDiv"></DIV>
  93. <DIV id="lineDivRight" style="display:none" class="lineDiv"></DIV>
  94. </xsl:template>
  95. <xsl:template match="INSTANCE">
  96. <TR dataRow="1" style="background-color:white;height:20">
  97. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='true']">
  98. <TD nowrap="true" class="tableDataAlignLeft" onclick="selectRow(this)" ondblclick="startDrillDown(this)" onkeydown="enterForDrillDown(this)" ></TD>
  99. </xsl:for-each>
  100. <xsl:for-each select="/CIM/Actions/INSTANCE/PROPERTY[@show='false']">
  101. <TD nowrap="true" class="tableDataAlignLeft" onclick="selectRow(this)" ondblclick="startDrillDown(this)" onkeydown="enterForDrillDown(this)" ></TD>
  102. </xsl:for-each>
  103. <TD class="tableDataAlignLeft" nowrap="true"></TD>
  104. <TD style="display:none" class="tableDataAlignLeft" nowrap="true"></TD>
  105. <TD style="display:none" class="tableDataAlignLeft" nowrap="true"></TD>
  106. </TR>
  107. </xsl:template>
  108. </xsl:stylesheet>