首页> 外国专利> Method for Validating Ambiguous W3C Schema Grammars

Method for Validating Ambiguous W3C Schema Grammars

机译:验证模棱两可的W3C架构语法的方法

摘要

A method for generating XML (Extensible Markup Language) parsers, including: parsing an input document with a generated parser where the generated parser is generated by a three-stage compilation of an XML Schema, where in a first stage the XML Schema is read and modeled in terms of abstract schema components, where in a second stage the XML Schema is augmented with a set of calculated schema components and properties, and where in a third stage the XML Schema is traversed to generate validation code; the validation code is generated by: calculating prohibited occurrence ranges; generating code to: evaluate each of the plurality of particles in an inner loop conditioned on an effective upper bound; then, once the inner loop terminates, check forbidden occurrence ranges for an inner particle, and calculate a range of possible repetitions of an outer particle; and once an outer loop terminates, check a range of total possible repetitions of the outer particle against its actual occurrence limits.
机译:一种生成XML(可扩展标记语言)解析器的方法,包括:用生成的解析器解析输入文档,其中生成的解析器是通过XML模式的三阶段编译生成的,其中在第一阶段中读取XML模式并以抽象模式组件为模型,在第二阶段,用一组计算的模式组件和属性扩充XML Schema,在第三阶段,遍历XML Schema以生成验证代码;验证码是通过以下方式生成的:计算禁止的发生范围;生成代码以:在以有效上限为条件的内部循环中评估多个粒子中的每个粒子;然后,一旦内部循环终止,检查内部粒子的禁止出现范围,并计算外部粒子的可能重复范围;并且一旦外部循环终止,请对照其实际出现限制检查外部粒子可能重复的总范围。

著录项

  • 公开/公告号US2008228810A1

    专利类型

  • 公开/公告日2008-09-18

    原文格式PDF

  • 申请/专利权人 MOSHE E. MATSA;ERIC PERKINS;

    申请/专利号US20080130235

  • 发明设计人 MOSHE E. MATSA;ERIC PERKINS;

    申请日2008-05-30

  • 分类号G06F17/30;

  • 国家 US

  • 入库时间 2022-08-21 20:15:17

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号