<?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.
  -
  - CVS $Id: xindice.xml 433543 2006-08-22 06:22:54Z crossley $
  -->

<!--
  - Xindice Database Configuration File
  -
  - Version: $Revision: 1.1 $ $Date: 2004/05/28 12:45:00 $
  - 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"/>
        </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>
      -->

    <!--
      - XML-RPC configuration for the Xindice server. Specifies name of the parser
      - to be used by XML-RPC. Apache XML-RPC knows following parsers:
      -    xerces   org.apache.xerces.parsers.SAXParser
      -    xp       com.jclark.xml.sax.Driver
      -    ibm1     com.ibm.xml.parser.SAXDriver
      -    ibm2     com.ibm.xml.parsers.SAXParser
      -    aelfred  com.microstar.xml.SAXDriver
      -    oracle1  oracle.xml.parser.XMLParser
      -    oracle2  oracle.xml.parser.v2.SAXParser
      -    openxml  org.openxml.parser.XMLSAXParser
      -->
    <xml-rpc>
        <driver name="xerces"/>
    </xml-rpc>
</xindice>
