XML DTD or schema for representing entities and relationships (SQL)?

S

Simon Brooke

One of the things I do is build applications which are supposed to be
database neutral; but all the different database engines have slight
variations in the SQL they understand. Consequently I've been using
increasingly complicated macro preprocessors to render my orignal SQL
source into the particular dialect of the particular database engine
I'm trying to address, and the point has arrived where I have to face
up to the fact that this is just the wrong approach. If you're
interested the current version is here:
<URL: http://www.jasmine.org.uk/~simon/bookshelf/papers/babelql/babelql.html >
but I'd be the first to tell you that it isn't much good.

It seems to me that a better approach would be to have a totally un
SQL-like XML dialect which represents entities, fields and
relationships at an abstract level, and then to use different XSL-T
templates to transform the abstract representation into the particular
SQL for particular database engines. It also seems to me that this
approach is fairly obvious and that someone else must have done it
already...

Does anyone know of a suitable DTD or schema I could use? I'd hate to
reinvent the wheel.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top