<?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.
  -
  - $Id$
  -->

<!--
  - Xindice Database Configuration File
  -
  - Version: $Revision$ $Date$
  - Author: Kimbro Staken (kstaken@xmldatabases.org)
  - Author: Vadim Gritsenko (vgritsenko@apache.org)
  -->
<xindice>

    <!--
      - Defines the database instance. Xindice server in servlet mode currently
      - supports only one database instance. Attributes:
      -   dbroot:
      -       Identifies location of the database. Relative paths will be
      -       resolved depending on mode of operation.
      -   name:
      -       Name of the database instance.
      -   use-metadata:
      -       When set to 'on', enables external metadata facilities
      -       for this database instance.
      -->
    <root-collection dbroot="./db/" name="db" use-metadata="on">

        <!--
          - Query Engine Configuration.
          -->
        <queryengine>
            <!--
              - XPath query engine. Has single configuration parameter.
              -   autoindex:
              -       If true, for every XPath query, XPath query engine will create
              -       all the indexes it can use to evaluate the query.
              -->
            <resolver class="org.apache.xindice.core.query.XPathQueryResolver"
                      autoindex="false"/>

            <!--
              - XUpdate engine. Has no configuration parameters.
              -->
            <resolver class="org.apache.xindice.core.xupdate.XUpdateQueryResolver"/>
            <resolver class="org.apache.xindice.core.query.TextQueryResolver"/>
        </queryengine>
    </root-collection>

    <!--
      - Xindice supports multiple DB instances. Uncomment entry below to have
      - second database instance, named 'db2'.
      -
    <root-collection dbroot="./db2/" name="db2" use-metadata="off">
        <queryengine>
            <resolver class="org.apache.xindice.core.query.XPathQueryResolver"
                      autoindex="false"/>
            <resolver class="org.apache.xindice.core.xupdate.XUpdateQueryResolver"/>
        </queryengine>
    </root-collection>
      -->

    <!--
      - Enable XML-RPC interface for the Xindice server.
      -->
    <xml-rpc/>
</xindice>
