<?xml-stylesheet type="text/xsl" href="xml-reference.xsl"?>
<schema>
	<element name="databases" 
	         description="Root element">
		<children>
			<child name="database" occurance="*"/>
		</children>		
	</element>
	
	<element name="database"
	         description="Defines a database">
		<attributes>
			<attribute name="alias"
			           description="Database alias, logical name of the database"/>
		</attributes>
		<children>
			<child name="driver" occurance="?"/>
			<child name="url" occurance="?"/>
			<child name="jar" occurance="?"/>
			<child name="user" occurance="?"/>
			<child name="password" occurance="?"/>
			<child name="catalog" occurance="*"/>
		</children>
	</element>
	
	<element name="driver"
	         description="Driver class name"/>
	
	<element name="url"
	         description="JDBC url"/>		

	<element name="jar">
		<description>
		JAR files containing the driver, optional. If multiple jar-files is
		needed, they should be separated by ":" (UNIX) or ";" (DOS)		
		</description>
	</element>
	        		

	<element name="user"
	         description="Database user, optional"/>		

	<element name="password"
	         description="Database password, optional"/>		
	
	<element name="catalog"
	         description="Extra definitions for a catalog">
	    <attributes>
			<attribute name="alias" mandatory="false"
					   description="Catalog alias"/>
			<attribute name="name" mandatory="true"
					   description="Physical catalog name"/>
		</attributes>
		<children>
			<child name="schema" occurance="*"/>
		</children>				   
	</element>
	
	<element name="schema"
	         description="Extra definition for a schema">
	    <attributes>
			<attribute name="alias" mandatory="false"
					   description="Schema alias "/>
			<attribute name="name" mandatory="true"
					   description="Schema catalog name"/>
	
		</attributes>
	</element>
	
</schema>