arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1912.10816cs.LOcs.IR
收藏

缩小XML模板扩展和模式验证的范围

Narrowing Down XML Template Expansion and Schema Validation

René Haberland

摘要:

这项工作研究了模板实例化可以在多大程度上缩小XML文档的模式验证。首先,实例化和验证是形式化的。对它们的实际意义进行了探讨,并开发了一个实现。阐述了统一的要求,并进行了比较。语义的制定方面的指称语义,以及基于规则的引用所选择的数据模型。形式化使实例化更清楚地得到了充分的表示。这两种语义都表明,为实例化和验证设置的规则不能完全统一。然而,重用简化的代码也简化了统一。执行允许在文件级别上统一这两个过程。所有实现的有效性都由全面的测试套件保证。分析表明,最小XML模板语言除了宏之外,具有规则的语法属性.给出了一个解释,为什么过滤器和箭头不是最好的,特别是对一个统一的语言是可变的和广泛的。为未来的语言设计提供了建议。实例化显示了应用程序中普遍存在的差距,例如,如图所示。模式中任意函数缺乏可表达性就是一个例子,命令语言的可表达性是另一个基本限制。发现有用的统一约束是方便的,例如键入每个插槽。为了获得最大的灵活性的命令语言的改编是必需的。引入约束的一种替代方法是有效地构建特殊的NFA。比较标准主要从句法和语义两个方面介绍。相应地进行了比较。尽管它有庞大的语法定义,但发现XSD比RelaxNG或XML模板语言弱。作为模板语言,后者被认为是通用的。

英文摘要:

This work examines how much template instantiation can narrow down schema validation for XML-documents. First, instantiation and validation are formalised. Properties towards their practical meaning are probed, an implementation is developed. Requirements for an unification are elaborated and a comparison is taken out. The semantics are formulated in terms of denotational semantics as well as rule-based referring to the data models chosen. Formalisation makes it clearer instantiation is adequately represented. Both semantics show, that the rules set for both, instantiation and validation, cannot totally be unified. However, reuse of simplified code also simplifies unification. Implementation allows unification of both processes on document-level. The validity of all implementations is guaranteed by a comprehensive test suite. Analysis shows the minimal XML template language has got regular grammar properties, except macros. An explanation was given, why filters and arrows are not best, especially towards a unified language to be variable and extensive. Recommendations for future language design are provided. Instantiation shows a universal gap in applications, for instance, as seen by XSLT. Lack of expressibility of arbitrary functions in a schema is one such example, expressibility of the command language is another basic restriction. Useful unification constraints are found out to be handy, such as typing each slot. In order to obtain most flexibility out of command languages adaptations are required. An alternative to introducing constraints is the effective construction of special NFAs. Comparison criteria are introduced regarding mainly syntax and semantics. Comparisons is done accordingly. Despite its huge syntax definitions XSD was found weaker than RelaxNG or XML template language. As template language the latter is considered universal.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑