XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Conferences Close Tree View
+ Stylus Studio Feature Requests (1192)
- Stylus Studio Technical Forum (14621)
-> - Stylus Studio - Registrar en o... (1)
-> + Stylus Studio - Registrar en o... (2)
-> + Can a pipeline send a file by ... (2)
-> + After Updateing WIN10 to WIN11... (12)
-> + Where do I add the custom java... (3)
-> + Where is the Diagram tab? (5)
-> + Applying XSLT to Word DOCX/XML (2)
-> - CSV conversion via ConvertToXM... (1)
-> + Text symbols in SS not same as... (4)
-> + Exposing xquery as webservice ... (6)
-> + Syntax Identifier (2)
-> + Saving a Converted XML as an X... (5)
-> + Output document cannot be pars... (4)
-> - Archiving output from conversi... (1)
-> + EDIFACT guideline from Stylus ... (3)
-> + CSV file putting all the data ... (5)
-> + Can't install Home version 64b... (5)
-> + presale - Can I covers this sc... (5)
-> + Problem with UNB (5)
-> + Splitting EDIFACT files pipeli... (4)
-- [1-20] [21-40] [41-60] Next
+ Website Feedback (249)
+ XSLT Help and Discussion (7625)
+ XQuery Help and Discussion (2016)
+ Stylus Studio FAQs (159)
+ Stylus Studio Code Samples & Utilities (364)
+ Stylus Studio Announcements (113)
Topic  
Postnext
Meeraj KunnumpurathSubject: 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?

Kind regards
Meeraj

Postnext
Ivan PedruzziSubject: 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

Hope this helps
Ivan Pedruzzi
Stylus Studio Team

Posttop
Meeraj KunnumpurathSubject: Legacy Format Handling
Author: Meeraj Kunnumpurath
Date: 16 Feb 2012 08:50 AM
Thanks Ivan for the quick reply. I have a couple more follow up questions, I assume the best way to take it is with the support email?

Kind regards
Meeraj

   
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.