I want to allow users to upload files with transaction information to my application. I want users to be able to user their own file format when doing so (XML or CSV).
So I'm going to need a transformation from their format to my format before doing further processing. I don't want to have to create this XSLT manually every time a user has a new file format, so I want to create a UI to essentially build this XSLT document.
This is relatively easy for a CSV file format. The user says the first element maps to x field on my side, second element maps to 7 field etc.
This gets more complicated when the file format is XML with nested elements etc. Does anyone know of a good UI paradigm for doing so? Any examples I can look at on the web or elsewhere? I imagine the user would have to describe a full xpath as part of the mapping, or maybe first upload an XSD and use that to select elements for the mapping (after which I'd need to generate the XSLT).
I appreciate any ideas.