Hi Folks,
I am seeking a powerful, declarative XML language for expressing reversible transformations. Here is an example to illustrate what I mean by reversible transformation. Input files contain an integer
denoting a machine: 0 denotes Intel 386, 1 denotes x86, 2 denotes ARMv7. Here is an input file transformed to XML: 1
à
foo à
<machine>x86</machine> where foo is some (to-be-determined) declarative, XML language. Here is the reverse transformation, from XML to original input format: <machine>x86</machine>
à
foo à 1 To do this reversible transformation, foo must have (declaratively) captured the mapping from integers
to strings (e.g., 1 -> x86). That level of reversible transformation is already possible using the declarative, XML language Data
Format Description Language (DFDL). DFDL calls these transformations parsing and unparsing. Here is an example of a more advanced reversible transformation. An input file has this: W014404 1217
where: W means West The input file is transformed to this XML: <magneticVariation> The reverse transformation takes the XML back to the original input format. To do this reversible transformation, a language must have (declaratively) expressed:
Do you know of a powerful, declarative, XML language for expressing reversible transformations? /Roger |