Subject:Legacy Format Handling Author:Meeraj Kunnumpurath Date:15 Feb 2012 05:29 AM
I have the following need in an application implemented on the server using Java.
1. We have a canonical model described using XSD
2. Users can submit files in arbitrary formats as long as those formats are registered on the system
3. We need to transform the legacy format at runtime to the canonical internal format
The solution I have in mind is as follows ..
1. The users will use Stylus STudio to define the grammar for the legacy format and the translation to the canonical format
2. These assets are then registered on the system against a name identifier
3. They specify the format identifier from 2 when they submit a file
4. The system uses some Stylus API at runtime to parse and translate the file submitted by the user to the internal canonical XML format
This assumes ..
1. Stylus offers a means of mapping legacy formats to an XML format defined using XSD
2. These mapping can be exported to something that can be understood by a Stylus API at runtime
3. This API can be used at runtime for parsing and transforming files coming in the legacy format to the canonical XML format.
Could someone please confirm this is possible? If yes, where can I find further information on the details?