当前位置: X-MOL 学术Electronics › 论文详情
Our official English website, www.x-mol.net, welcomes your feedback! (Note: you will need to create a separate account there.)
TagML—An Implementation Specific Model to Generate Tag-Based Documents
Electronics ( IF 2.9 ) Pub Date : 2020-07-05 , DOI: 10.3390/electronics9071097
Ricardo Tesoriero , Gabriel Sebastian , Jose A. Gallud

This article describes TagML, a method to generate collections of XML documents using model-to-model (M2M) transformations. To accomplish this goal, we define the TagML meta-model and the TagML-to-XML model-to-text transformation. While TagML models represent the essential characteristics of collections of XML documents, the TagML-to-XML transformation generates the textual representation of collections of XML documents from TagML models. This approach enables developers to define model-to-model transformations to generate TagML models. These models are turned into text applying the TagML-to-XML transformation. Consequently, developers are able to use declarative languages to define model-to-text transformations that generate XML documents, instead of traditional archetype-based languages to define model-to-text transformations that generate collections of XML documents. The TagML model editor as well as the TagML-to-XML transformation were developed as Eclipse plugins using the Eclipse Modeling Framework. The plugin has been developed following the Object Modeling Group standards to ensure the compatibility with legacy tools. Using TagML, unlike other previous proposals, implies the use of model-to-model transformations to generate XML documents, instead of model-to-text transformations, which results on an improvement of the transformation readability and reliability, as well as a reduction of the transformation maintenance costs. The proposed approach helps developers to define transformations less prone to errors than using the traditional approach. The novelty of this approach is based on the way XML documents are generated using model-to-model transformations instead of traditional model-to-text transformations. Moreover, the simplicity of the proposed approach enables the generation of XML documents without the need for any transformation configuration, which does not penalize the model reuse. To illustrate the features of the proposal, we present the generation of XHTML documents using UML class diagrams as input models. The evaluation section demonstrates that the proposed method is less prone to errors than the traditional one.

中文翻译:

TagML-一种特定于实现的模型,用于生成基于标签的文档

本文介绍了TagML,这是一种使用模型到模型(M2M)转换生成XML文档集合的方法。为了实现此目标,我们定义了TagML元模型和TagML到XML的模型到文本的转换。尽管TagML模型代表了XML文档集合的基本特征,但TagML到XML的转换从TagML模型生成了XML文档集合的文本表示。这种方法使开发人员可以定义模型到模型的转换以生成TagML模型。这些模型通过TagML到XML的转换变成文本。因此,开发人员可以使用声明性语言定义生成XML文档的模型到文本的转换,而不是传统的基于原型的语言来定义生成XML文档集合的模型到文本的转换。TagML模型编辑器以及TagML到XML的转换都是使用Eclipse Modeling Framework作为Eclipse插件开发的。该插件是按照对象建模组标准开发的,以确保与旧版工具的兼容性。与以前的其他提案不同,使用TagML意味着要使用模型到模型的转换来生成XML文档,而不是模型到文本的转换,这会提高转换的可读性和可靠性,并降低转换的可靠性。改造维护费用。所提出的方法可以帮助开发人员定义比使用传统方法更不容易出错的转换。这种方法的新颖性基于使用模型到模型的转换而不是传统的模型到文本的转换来生成XML文档的方式。而且,所提出方法的简单性使得无需任何转换配置即可生成XML文档,这不会损害模型的重用性。为了说明该提案的功能,我们介绍了使用UML类图作为输入模型的XHTML文档的生成。评估部分表明,与传统方法相比,该方法不易出错。所提出方法的简单性使得无需任何转换配置即可生成XML文档,这不会损害模型的重用性。为了说明该提案的功能,我们介绍了使用UML类图作为输入模型的XHTML文档的生成。评估部分表明,与传统方法相比,该方法不易出错。所提出方法的简单性使得无需任何转换配置即可生成XML文档,这不会损害模型的重用性。为了说明该提案的功能,我们介绍了使用UML类图作为输入模型的XHTML文档的生成。评估部分表明,与传统方法相比,该方法不易出错。
更新日期:2020-07-05
down
wechat
bug