home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / WindowsServerTrial / server.iso / sources / install.wim / 2 / Windows / System32 / winresume.exe / HTML / RESUME.XSL
Extensible Markup Language  |  2008-01-19  |  17KB  |  251 lines

  1.  ■<?xml version="1.0" encoding="unicode"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:osxml="osxml" version="1.0">
  3. <_locDefinition>
  4.       <_locDefault _loc="locData"/>
  5.       <_locTag _locAttrData="pad-left,pad-right">p</_locTag>
  6.       <_locTag _locAttrData="height,width">textarea</_locTag>
  7.       <_locTag _locAttrData="minsize">select</_locTag>
  8.       <_locTag _locAttrData="size">progressbar</_locTag>
  9.       <_locTag _locAttrData="size,maxlen">input</_locTag>
  10.       <_locTag _locAttrData="value">osxml:update</_locTag>
  11.       <_locTag _locAttrData="tip">option</_locTag>
  12. </_locDefinition>
  13. <xsl:template match="text-progress-bar">
  14. <osxml:text-mode-ui>
  15.   <head>
  16.     <meta key="SPACE" action="request-pause"/>
  17.   </head>
  18.   <body background-color="XXXX" foreground-color="RGBX">
  19.     <br/>
  20.     <br/>
  21.     <br/>
  22.     <br/>
  23.     <br/>
  24.     <br/>
  25.     <br/>
  26.     <br/>
  27.     <br/>
  28.     <br/>
  29.     <br/>
  30.     <br/>
  31.     <br/>
  32.     <br/>
  33.     <br/>
  34.     <br/>
  35.     <br/>
  36.     <br/>
  37.     <br/>
  38.     <p pad-left="28">Resuming Windows ...</p>
  39.     <br/>
  40.     <meter name="progressbar" size="76"/>
  41.     <p pad-left="2">To pause system resume, press the space bar.</p>
  42.   </body>
  43. </osxml:text-mode-ui>
  44. </xsl:template>
  45. <xsl:template match="progress-update">
  46.   <osxml:update control="progressbar" value="{@value}"/>
  47. </xsl:template>
  48. <xsl:template match="graphical-progress-bar">
  49. <osxml:text-mode-ui>
  50.   <head>
  51.     <meta key="SPACE" action="request-pause"/>
  52.   </head>
  53.   <body foreground-color="RGBX" background-color="XXXX">
  54.   <textarea width="31" height="24"/><textarea name="progress"/>
  55.   </body>
  56. </osxml:text-mode-ui>
  57. </xsl:template>
  58. <xsl:template match="progress-status">
  59.   <osxml:update control="progress" value="Resuming Windows..."/>
  60. </xsl:template>
  61. <xsl:template match="pause-restart">
  62. <xsl:apply-templates/>
  63. <osxml:text-mode-ui>
  64.   <head>
  65.     <title color="XXXXRGBX"><xsl:text>                            Windows Resume Loader                              </xsl:text></title>
  66.     <footer color="XXXXRGBX">
  67.       <xsl:for-each select="@requested">
  68.         <xsl:text> ENTER=Choose                                                                  </xsl:text>
  69.       </xsl:for-each>
  70.       <xsl:for-each select="@initial">
  71.         <xsl:text> ENTER=Choose                                                                  </xsl:text>
  72.       </xsl:for-each>
  73.       <xsl:for-each select="@memsize">
  74.         <xsl:text> ENTER=Continue                                                                </xsl:text>
  75.       </xsl:for-each>
  76.     </footer>
  77.     <meta key="ENTER" action="submit"/>
  78.   </head>
  79.   <body background-color="XXXX" foreground-color="RGBX">
  80.   <br/>
  81.   <xsl:for-each select="@requested">
  82.     <font foreground-color="RGBI">
  83.     System resume has been paused:
  84.     </font>
  85.     <br/>
  86.     (Use the arrow keys to highlight your choice.)
  87.     <br/>
  88.   </xsl:for-each>
  89.   <xsl:for-each select="@initial">
  90.     <font foreground-color="RGBI">
  91.     The last attempt to resume the system from its previous location
  92.     failed.  Attempt to resume again?
  93.     </font>
  94.     <br/>
  95.     (Use the arrow keys to highlight your choice.)
  96.     <br/>
  97.   </xsl:for-each>
  98.   <xsl:for-each select="@memsize">
  99.     <p pad-right="3">
  100.     <font foreground-color="RGBI">
  101.     Your system&apos;s memory configuration has changed since it entered
  102.     hibernation. If you proceed, the data needed to resume from hibernation
  103.     will be lost. To preserve this data, turn off the system power, restore
  104.     the original memory configuration, and then reboot the system. Otherwise,
  105.     press &lt;ENTER&gt; to delete restoration data and proceed to system boot
  106.     menu.
  107.     </font>
  108.     </p>
  109.   </xsl:for-each>   
  110.   <br/>
  111.     <p pad-right="19">
  112.     <form>
  113.     <select name="pauseoption" right-justify="true">
  114.       <xsl:for-each select="@memsize">
  115.         <option selected="true" value="1">Delete restoration data and proceed to system boot menu</option>
  116.       </xsl:for-each>
  117.       <xsl:for-each select="@initial">
  118.         <option value="0">Continue with system resume</option>
  119.         <option selected="true" value="1">Delete restoration data and proceed to system boot menu</option>
  120.       </xsl:for-each>
  121.       <xsl:for-each select="@requested">
  122.         <option selected="true" value="0">Continue with system resume</option>
  123.         <option value="1">Delete restoration data and proceed to system boot menu</option>
  124.       </xsl:for-each>
  125.       <xsl:for-each select="@debug">
  126.         <option value="2">Continue with debug breakpoint on system wake</option>
  127.       </xsl:for-each>
  128.     </select>
  129.     </form>
  130.     <br/>
  131.   </p>
  132.   </body>
  133. </osxml:text-mode-ui>
  134. </xsl:template>
  135. <xsl:template match="resume-from-hibernate">
  136. <osxml:text-mode-ui>
  137.   <head>
  138.     <meta key="SPACE" action="request-pause"/>
  139.   </head>
  140. </osxml:text-mode-ui>
  141. </xsl:template>
  142. <xsl:template match="resume-pause-end">
  143. <osxml:text-mode-ui>
  144.   <body background-color="XXXX" foreground-color="RGBX">
  145.     <br/>
  146.   </body>
  147. </osxml:text-mode-ui>
  148. </xsl:template>
  149. <xsl:template match="resume-from-critical">
  150. <osxml:text-mode-ui>
  151.   <head>
  152.     <title color="XXXXRGBX"><xsl:text>                            Windows Resume Loader                              </xsl:text></title>
  153.     <footer color="XXXXRGBX"><xsl:text> ENTER=Continue                                                                </xsl:text></footer>
  154.     <meta key="ENTER" action="submit"/>
  155.     <xsl:for-each select="@timeout">
  156.       <meta key="ANY" action="anykey"/>
  157.       <meta event="TIMEOUT" action="submit"/>
  158.       <timer initial="{.}" control="timerval"/>
  159.     </xsl:for-each>
  160.   </head>
  161.   <body background-color="XXXX" foreground-color="RGBX">
  162.   <br/>
  163.   <p pad-right="3">
  164.     <font foreground-color="RGBI">
  165.     Windows saved the current session to disk because the battery
  166.     reached its critical level. Before resuming Windows, the battery 
  167.     must be recharged or the system should be plugged in. If you 
  168.     have not done so, please shutdown and replace the battery or 
  169.     plug in.
  170.     </font>
  171.   </p>
  172.   <br/>
  173.     <p pad-right="46">
  174.     <form>
  175.     <select name="criticalresumeoption" right-justify="true">
  176.       <option selected="true" value="0">Continue with system resume</option>
  177.     </select>
  178.     </form>
  179.     </p>
  180.     <br/>
  181.     <xsl:for-each select="@timeout">
  182.       <textarea name="timerstr" width="61">Seconds until Windows will continue to resume automatically: </textarea>
  183.       <textarea name="timerval" width="8"/>
  184.     </xsl:for-each>
  185.    </body>
  186. </osxml:text-mode-ui>
  187. </xsl:template>
  188. <xsl:template match="resume-error">
  189. <osxml:text-mode-ui>
  190.   <head>
  191.     <title color="XXXXRGBX"><xsl:text>                            Windows Resume Loader                               </xsl:text></title>
  192.     <footer color="XXXXRGBX"><xsl:text> ENTER=Reboot                                                                  </xsl:text></footer>
  193.     <meta key="ENTER" action="reboot"/>
  194.   </head>
  195.   <body background-color="XXXX" foreground-color="RGBX">
  196.   <br/>
  197.     Your computer can&apos;t come out of hibernation.<br/>
  198.   <br/>
  199.   <br/>
  200.   <p pad-left="4" pad-right="6">
  201.     Status: <font foreground-color="RGBI"><xsl:value-of select="@status"/></font>
  202.     <br/>
  203.     <xsl:for-each select="@source">
  204.       Source:
  205.     </xsl:for-each>
  206.     <font foreground-color="RGBI"><xsl:value-of select="@source"/></font>
  207.     <br/>
  208.     <xsl:for-each select="@line">
  209.       Line:
  210.     </xsl:for-each>
  211.     <font foreground-color="RGBI"><xsl:value-of select="@line"/></font>
  212.     <br/>
  213.     <br/>
  214.     <xsl:for-each select="@info">
  215.       Info:
  216.     </xsl:for-each>
  217.     <font foreground-color="RGBI"><textarea height="2"><xsl:value-of select="@info"/></textarea></font>
  218.     <br/>
  219.     <br/>
  220.     <xsl:for-each select="@file">
  221.       File:
  222.     </xsl:for-each>
  223.     <font foreground-color="RGBI"><xsl:value-of select="@file"/></font>
  224.     </p>
  225.   <br/>
  226.     Your computer will be rebooted. Any information that was not saved <br/>
  227.     before the computer went into hibernation will be lost.<br/>
  228.   </body>
  229. </osxml:text-mode-ui>
  230. </xsl:template>
  231. <xsl:template match="timeout-cancel">
  232.   <osxml:update disable-timer="true"/>
  233.   <osxml:update control="timerval" value=""/>
  234.   <osxml:update control="timerstr" value=""/>
  235. </xsl:template>
  236. <xsl:template match="*|@*|text()"/>
  237. </xsl:stylesheet>