<?xml version="1.0" encoding="UTF-8"?>
<!--
 Licensed to the Apache Software Foundation (ASF) under one
 or more contributor license agreements.  See the NOTICE file
 distributed with this work for additional information
 regarding copyright ownership.  The ASF licenses this file
 to you under the Apache License, Version 2.0 (the
 "License"); you may not use this file except in compliance
 with the License.  You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing,
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied.  See the License for the
 specific language governing permissions and limitations
 under the License.
-->

<document>
  <properties>
    <title>Transforming other Formats from/to Torque Format</title>
    <author email="tv@apache.org">Thomas Vandahl</author>
    <author email="fischer@seitenbau.de">Thomas Fischer</author>
  </properties>

  <body>
   <section name="DBDesigner">
     <p>
       <a href="http://fabforce.net/dbdesigner4/">DBDesigner</a> is a tool which 
       helps with database design. It is made for MySQL databases, mostly. 
       DBDesigner kindly stores the model in XML files which contain most 
       information that we need in the Torque schema. So this script was
       created to transform one form into the other.
     </p>
     <p>
       To use the script <a href="D4-Torque.xslt"><code>D4-Torque.xslt</code></a>,
       simply fire up the XSLT-processor of your choice and give it the DBDesigner
       model as an input.
     </p>
     <p>
       This script was made for transforming a certain model into the associated
       Torque schema. So basically, &quot;It works for me&quot;. Mostly the mapping
       of DBDesigner types into Torque types is incomplete. Any patches are welcome
       (as always).
     </p>
     <p>
       DBDesigner is no longer actively being developed. It's successor,
       <a href="http://dev.mysql.com/downloads/workbench/">MySQL Workbench</a>,
       is currently in Beta status. As far as we can see, the format of the
       model files will need adjustment when it's ready.
     </p>
   </section>

   <section name="Mogwai ERDesigner">
     <p>
       <a href="http://mogwai.sourceforge.net/erdesigner/erdesigner.html">Mogwai ERDesigner</a>
       is a tool for vizualizing the Database structure which uses an
       XML-based file format.
       The stylesheet <a href="schema2erd.xsl">schema2erd.xsl</a> translates
       a Torque-schema into the mogwai-format.  It transforms entities
       (=tables), attributes (=columns) and relations (=foreign-keys).
     </p>
      
     <p>
       Only the location of the entities is missing so you have to arrange
       them by yourself.  If somebody uses mogwai and Torque, this stylesheet
       may be helpful.
     </p>
   </section>
  </body>
</document>
