首页> 外文OA文献 >A Simple and Efficient Step Towards Type-Correct XSLT Transformations
【2h】

A Simple and Efficient Step Towards Type-Correct XSLT Transformations

机译:一种简单有效的类型正确XsLT转换步骤

摘要

XSLT 1.0 is a standardized functional programming language and widely used for defining transformations on XML models and documents, in many areas of industry and publishing. The problem of XSLT type checking is to verify that a given transformation, when applied to an input which conforms to a given structure definition, e.g. an XML DTD, will always produce an output which adheres to a second structure definition. This problem is known to be undecidable for the full range of XSLT and document structure definition languages. Either one or both of them must be significantly restricted, or only approximations can be calculated.The algorithm presented here takes a different approach towards typecorrect XSLT transformations. It does not consider the type of the input document at all. Instead it parses the fragments of the result document contained verbatim in the transformation code and verifies that these can potentially appear in the result language, as defined by a given DTD. This is a kind of abstract interpretation, which can be executed on the fly and in linear time when parsing the XSLT program. Generated error messages are located accurately to a child subsequence of a single result element node.Apparently the method eliminates a considerable share of XSLT programming errors, on the same order of magnitude as a full fledged global control-flow analysis.
机译:XSLT 1.0是一种标准化的函数式编程语言,在许多行业和发布领域中,广泛用于定义XML模型和文档的转换。 XSLT类型检查的问题是在将给定的转换应用于符合给定结构定义的输入时,例如给定的转换,以验证给定的转换。 XML DTD将始终产生遵循第二个结构定义的输出。众所周知,对于整个XSLT和文档结构定义语言来说,这个问题是无法确定的。必须严格限制它们之一或两者,或者只能计算近似值。此处提出的算法对类型正确的XSLT转换采用了不同的方法。它根本不考虑输入文档的类型。相反,它解析转换代码中逐字包含的结果文档的片段,并验证这些片段是否有可能以给定DTD定义的结果语言出现。这是一种抽象解释,可以在解析XSLT程序时即时且线性地执行。生成的错误消息被精确地定位到单个结果元素节点的子子序列。显然,该方法消除了相当多的XSLT编程错误,其数量级与完整的全局控制流分析相同。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号