Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I use VBScript in a xslt stylesheet?
In this code:
XML
<?xml version="1.0" encoding="unicode"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:osxml="osxml" version="1.0">
<_locDefinition>
      <_locDefault _loc="locData"/>
      <_locTag _locAttrData="pad-left,pad-right">p</_locTag>
      <_locTag _locAttrData="height,width">textarea</_locTag>
      <_locTag _locAttrData="minsize,noindent">select</_locTag>
      <_locTag _locAttrData="size">progressbar</_locTag>
      <_locTag _locAttrData="size,maxlen">input</_locTag>
      <_locTag _locAttrData="value">osxml:update</_locTag>
</_locDefinition>
<xsl:template match="fve-bad-pcr-registers">
<osxml:text-mode-ui>
  <head>
    <footer color="RGBIXXXX"><xsl:text> ENTER=Continue</xsl:text></footer>
    <meta key="ENTER" action="continue"/>
  </head>
  <body background-color="XXXX" foreground-color="RGBX">
    <font foreground-color="RGBI">
    Windows BitLocker Drive Encryption Information<br/>
    </font>
    <br/>
    <br/>
    The system boot information has changed since BitLocker was enabled.<br/>
    <br/>
    You must supply a BitLocker recovery key to start this system.<br/>
    <br/>
    Confirm that the changes to the system boot information are authorized.<br/>
    <br/>
    If the changes to the system boot information are trusted, then suspend and resume BitLocker. This will reset BitLocker to use the new boot information.<br/>
    <br/>
    Otherwise restore the system boot information.<br/>
    <br/>
  </body>
</osxml:text-mode-ui>
</xsl:template>

How is this done in vbscript inline with XSLT?
if User presses "continue" it goes to next line, if user press the "B" key then it goes to "progress-bar"


SO that it goes to the respective places in the code?

Thank you John
Posted
Updated 7-Feb-10 23:27pm
v2

1 solution

I think that to do what you want you simply put the vbscript in <script> tags in the <osxml:text-mode-ui> area and put a onkeydown listener in the <body> tag.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900