Application for XSLT in Simulation Data Transformation
段伟,刘云飞,刘晓铖,邱晓刚
DOI: https://doi.org/10.16182/j.cnki.joss.2011.09.032
2011-01-01
Abstract:XML has been widely applied to the representation,storage,exchange and share of data in the process of simulation system development and execution.As a module of Stylesheet of XSL,XSLT transforms XML document into documents defined in other format,such as XML,HTML,and TEXT,etc.Simulation data transformation could be implemented by XSLT.For example,it could transform scenario into script document,and transform model description document into object model template document and the description document of base object model,etc.Besides,simulation data transformation by XSLT could drive the process of simulation system development and execution,and actualize the connection of simulation systems in various frameworks,and enhance the compatibility,expansibility and maintainability of simulation system.Then for resolving the complexity of simulation data transformation by XSLT and the limitation of XSLT programming,the data transformation method of double-layer mapping was proposed,at the same time,the recursion cycle algorithm was designed and implemented by making use of call-template,parameter and variable,flow control,etc.