Re: [xsl] how to generate a xsl from 2 xsd?

Subject: Re: [xsl] how to generate a xsl from 2 xsd?
From: J-P S <jps@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 6 Sep 2004 09:50:38 +0100 (BST)
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

Current Thread