cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Derek Hohls" <>
Subject RE: XML for describing databases?
Date Tue, 19 Mar 2002 06:26:45 GMT

I would definitely be interested in this - tho' I am not sure that I
fully understand the approach you have taken eg. " submit
queries using that format"?

I am also curious as to how you format your output to make it 
human-readable if you do not use XSLT?


>>> 18/03/2002 05:38:08 >>>
I have been working on a similar problem but approaching it in a
slightly different way. I have taken more of an object-relational
mapping approach similar to products such as TopLink. Using this
approach you define your database schema and your XML result schema
separately and then map them together. For instance, the SQL tables
Employees (i.e. Employee, Department, Person) will be mapped directly
your resulting XML document and that document can be structured like:
or it could be structured like:
            <employee deptName="accounting" id="1234">
or any other variation.
The mapping (created against a defined mapping schema as an XML
document) provides the information that is needed to build the queries
and create the resulting documents. XSLT is not used and the typical
result type from an XML query (<table name="department"><row><column
is not
The query is truly symmetric. You can define the result format, submit
queries using that format, and receive responses in that format. To
qualify your query you include the known data elements and the query
will be built to find those.
I have been working on this independently and would be interested in
comments. I currently have the query definition, submit, and response
working for moderately complex data sets (involving many-to-many
relations that can be brought to multiple places in the XML document)
and will work on defining insert and update as well.
- Glenn

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message