Subject:Legacy Format Handling Author:Meeraj Kunnumpurath Date:15 Feb 2012 05:29 AM
Hi,
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?
Subject:Legacy Format Handling Author:Ivan Pedruzzi Date:15 Feb 2012 10:46 AM
Hi Meeraj,
What you are describing is one of the most common Stylus Studio use cases.
Here is one approach in broad strokes:
Your user should be allowed to register two kinds of information the inbound document type and a mapping designed with the Stylus Studio XQuery mapping tool.
The document type could either be a Stylus Studio built-in type ( CSV, EDI, SYLK, etc.) or a .conv file created with the Stylus Studio Convert to XML module.
On the server you could use our Java runtime components: XML Converters and DataDirect XQuery to convert and to translate the inbound documents into the canonical XML model.
If you desire to discuss such architecture in details please contact us at stylussupport@ivitechnologies.com