<xml-template>
  <imagedir>images</imagedir>
  <uploaddir>images</uploaddir>
  <email>root@localhost</email>

  <sources>
    <source name="xml-template">
      <module>XML::Template::Source::DBI</module>
      <dsn>DBI:mysql:database=xml-template</dsn>
      <user>xml-template</user>
      <pwdfile>xml-template.pwd</pwdfile>
    </source>
  </sources>

  <source-mappings>
    <source-mapping namespace="http://syrme.net/xml-template/user/v1">
      <source>xml-template</source>
      <table>users</table>
      <keys>username</keys>
    </source-mapping>
    <source-mapping namespace="http://syrme.net/xml-template/block/v1">
      <source>xml-template</source>
      <table>blocks</table>
      <keys>blockname</keys>
    </source-mapping>
    <source-mapping namespace="http://syrme.net/xml-template/item/v1">
      <source>xml-template</source>
      <table>items</table>
      <keys>itemname</keys>
      <relation namespace="http://syrme.net/xml-template/multimedia/v1">
        <table>item2multimedia</table>
        <auto_increment>number</auto_increment>
      </relation>
    </source-mapping>
    <source-mapping namespace="http://syrme.net/xml-template/type/v1">
      <source>xml-template</source>
      <table>types</table>
      <keys>type</keys>
    </source-mapping>
    <source-mapping namespace="http://syrme.net/xml-template/group/v1">
      <source>xml-template</source>
      <table>groups</table>
      <keys>groupname</keys>
      <relation namespace="http://syrme.net/xml-template/item/v1">
        <table>group2item</table>
      </relation>
    </source-mapping>
    <source-mapping namespace="http://syrme.net/xml-template/multimedia/v1">
      <source>xml-template</source>
      <table>multimedia</table>
      <keys>multimedianame</keys>
    </source-mapping>
  </source-mappings>
</xml-template>
