首页> 外国专利> Optimizing XSLT based on input XML document structure description and translating XSLT into equivalent XQuery expressions

Optimizing XSLT based on input XML document structure description and translating XSLT into equivalent XQuery expressions

机译:根据输入的XML文档结构描述优化XSLT,并将XSLT转换为等效的XQuery表达式

摘要

Transformation of a set of XML documents via an XSLT stylesheet is made more efficient by rewriting the stylesheet at compile-time, based on the structural description of the set of XML documents, into an optimized stylesheet containing fewer dynamic template-matching calls than the original stylesheet. This rewritten stylesheet can be further rewritten into a set of XQuery expressions. At compile-time, the particular transformation templates that are appropriate for transforming the particular nodes contained in the set of XML documents are determined, and XSLT calls to the templates are converted to calls to corresponding XQuery user-defined functions. Determination of the appropriate transformation templates may be based on the structural description of the input set of XML documents, such as an XML Schema or Document Type Definition. The data from each template is translated into corresponding XQuery constructors, instructions from the template are translated into XQuery expressions, and the XQuery functions are inlined if possible.
机译:通过在编译时根据XML文档集的结构描述将样式表重写为优化的样式表,该XML文档集通过XSLT样式表的转换效率更高,该优化的样式表包含的动态模板匹配调用少于原始样式表样式表。可以将这个重写的样式表进一步重写为一组XQuery表达式。在编译时,确定适用于转换XML文档集中包含的特定节点的特定转换模板,并将对模板的XSLT调用转换为对相应XQuery用户定义函数的调用。适当的转换模板的确定可以基于XML文档输入集的结构描述,例如XML Schema或Document Type Definition。每个模板中的数据都转换为相应的XQuery构造函数,模板中的指令将转换为XQuery表达式,并且如果可能的话,内联XQuery函数。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号