【24h】

A Graph-Based Approach to Transform XML Documents

机译:一种基于图的XML文档转换方法

获取原文
获取原文并翻译 | 示例

摘要

As XML diffusion keeps increasing, it is today common practice for most developers to deal with XML parsing and transformation. XML is used as format to e.g. render data, query documents, deal with Web services, generate code from a model or perform model transformation. Nowadays XSLT is the most common language for XML transformation. But, although meant to be simple, coding in XSLT can become quite a challenge, if the coding approach does not only depend on the structure of the source document, but the order of template application is also dictated by target document structure. This is the case especially when dealing with transformations between visual models. We propose to use a graph-based approach to simplify the transformation definition process where graphs representing documents are transformed in a rule-based manner, as in XSLT. The differences to XSLT are mainly that rules can be developed visually, are more abstract (since the order of execution does not depend on the target document), IDREFs are dealt with much more naturally, and due to typed transformations, the output document is guaranteed to be valid with respect to the target schema. Moreover, graph-based transformation definitions can be automatically reversed in most cases. This is especially useful in model transformation (e.g. in OMG's MDA approach).
机译:随着XML扩散的不断增加,当今大多数开发人员都习惯于处理XML解析和转换。 XML用作格式,例如渲染数据,查询文档,处理Web服务,从模型生成代码或执行模型转换。如今,XSLT是XML转换最常用的语言。但是,尽管这样做很简单,但是如果编码方法不仅取决于源文档的结构,而且模板应用的顺序也取决于目标文档的结构,则XSLT中的编码可能会成为一个很大的挑战。在处理视觉模型之间的转换时尤其如此。我们建议使用基于图形的方法来简化转换定义过程,在转换定义过程中,代表文档的图形以基于规则的方式进行转换,就像在XSLT中一样。与XSLT的不同之处主要在于规则可以可视化地开发,更抽象(因为执行顺序不依赖于目标文档),IDREF的处理更为自然,并且由于类型转换,输出文档得到了保证对目标架构有效。此外,在大多数情况下,基于图的转换定义可以自动逆转。这在模型转换中尤其有用(例如,在OMG的MDA方法中)。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号