[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: how to generate a xsl from 2 xsd?
On Mon, 6 Sep 2004, Dario Di Minno wrote: ) Is it possible to obtain automatically (via a tool or a Java api) an ) xslt file from the "A" and the "B" xsd files, able to transform the xml ) from the "B" format to the "A" format? What you've described is the great semantic problem in automating XML mapping. There's no easy solution, because there's nothing in the schema that tells you that, say, tag A:x maps to tag B:y rather than tag B:z . A mapping could guess based on the typing of objects which goes where, but there's always going to be some ambiguity with all but the simplest of schemata. There are semi-solutions, which mostly involve constructing a taxonomy with RDF and using that as an intermediary. It's not something I have any special knowledge of but you might want to try a schema mailing list rather than an XSLT one. There was, however, an overview talk on this solution at the XML UK conference a few months back: the slides are available at http://www.xmluk.org/public/ral_2004.htm#bm . You can have a look at that and see whether it's too much programming/building overhead for you. Cheers, J-P -- "... Grayling, like every other professional atheist from Professor Richard Dawkins down, brings in all manner of questionable assumptions about human behaviour that he doesn't for a moment address with the care, and venom, lavished on the New Testament." -- Private Eye #1035
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|