首页> 外国专利> Extensible markup language (XML) server pages having custom document object model (DOM) tags

Extensible markup language (XML) server pages having custom document object model (DOM) tags

机译:具有自定义文档对象模型(DOM)标记的可扩展标记语言(XML)服务器页面

摘要

A method for serving a web page uses eXtensible Markup Language (XML) server pages. The first time a page is accessed, a given flat file is parsed into an XML Document Object Model (DOM), and required tag libraries are loaded. The DOM tree is then traversed, preferably in a depth-first, inside-out manner to locate custom tags. Upon locating a custom tag, if the tag is registered as a Java object, the object is loaded. A process method is then called on the object, passing the custom tag's tree node. The Java object then examines the custom tag and replaces it with an object, e.g., script code. Alternatively, if the tag is registered as an XSL stylesheet, the stylesheet is loaded and passed, together with the DOM, to an XSL processor. The processor applies the template to the custom tag and replaces it with given script code. Once all custom tags are reduced to HTML and script code, the DOM is compiled into a Java servlet to service the client request.
机译:用于服务网页的方法使用可扩展标记语言(XML)服务器页面。第一次访问页面时,将给定的平面文件解析为XML文档对象模型(DOM),并加载所需的标记库。然后,最好以深度优先,从里到外的方式遍历DOM树以定位自定义标签。找到自定义标签后,如果将标签注册为Java对象,则将加载该对象。然后在对象上调用处理方法,传递自定义标签的树节点。然后,Java对象检查自定义标记,并将其替换为对象,例如脚本代码。或者,如果将标记注册为XSL样式表,则将样式表与DOM一起加载并传递给XSL处理器。处理器将模板应用于自定义标签,并将其替换为给定的脚本代码。一旦所有自定义标签都简化为HTML和脚本代码,则DOM被编译为Java servlet以服务于客户端请求。

著录项

  • 公开/公告号GB0022534D0

    专利类型

  • 公开/公告日2000-11-01

    原文格式PDF

  • 申请/专利权人 INTERNATIONAL BUSINESS MACHINES CORPORATION;

    申请/专利号GB20000022534

  • 发明设计人

    申请日2000-09-14

  • 分类号G06F17/30;G06F9/45;G06F17/21;

  • 国家 GB

  • 入库时间 2022-08-22 01:38:55

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号