在XSL样式表中使用VBSCript [英] Using VBSCript in a XSL stylesheet

查看:118
本文介绍了在XSL样式表中使用VBSCript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在xslt样式表中使用VBScript?
在此代码中:

How do I use VBScript in a xslt stylesheet?
In this code:

<?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"



所以它去了代码中的各个地方?

谢谢John



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

Thank you John

推荐答案

我认为要执行您想要的操作,只需将vbscript放在< script>中. < osxml:text-mode-ui>中的标记区域,然后将onkeydown侦听器放在< body>标签.
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.


这篇关于在XSL样式表中使用VBSCript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆