Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 11382 invoked by uid 500); 19 Mar 2002 06:31:48 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 11364 invoked from network); 19 Mar 2002 06:31:46 -0000 Disclaimer: The CSIR exercises no editorial control over E-mail messages originating in the organisation and the views in this message are therefore not necessarily those of the CSIR and/or its employees. Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.0.1 Date: Tue, 19 Mar 2002 08:26:45 +0200 From: "Derek Hohls" To: , Subject: RE: XML for describing databases? Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Glenn 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? Cheers Derek >>> gcling@telocity.com 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 for Employees (i.e. Employee, Department, Person) will be mapped directly to your resulting XML document and that document can be structured like: accounting John Doe 1234 . or it could be structured like: John Doe 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 (360..
.
) is not used. 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: