<?xml version="1.0" encoding="UTF-8"?>
<!--This schema describes the weblogic-extension schema.  This includes
  unsupported features that may be removed without notice in future
  WebLogic Server releases.-->
<schema targetNamespace="http://www.bea.com/ns/weblogic/90" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:wls="http://www.bea.com/ns/weblogic/90" xmlns="http://www.w3.org/2001/XMLSchema">
  <include schemaLocation="http://www.bea.com/ns/weblogic/910/weblogic-j2ee.xsd"/>
  <element name="weblogic-extension" type="wls:weblogic-extensionType"/>
  <complexType name="weblogic-extensionType">
    <sequence>
      <element name="module-provider" minOccurs="0" maxOccurs="unbounded" type="wls:module-providerType"/>
      <element name="custom-module" type="wls:custom-moduleType" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
  <complexType name="custom-moduleType">
    <sequence>
      <element name="uri" type="string" minOccurs="1"/>
      <element name="provider-name" type="string" minOccurs="1"/>
      <element name="configuration-support" type="wls:configuration-supportType" minOccurs="0"/>
    </sequence>
  </complexType>
  <complexType name="module-providerType">
    <sequence>
      <element name="name" type="string" minOccurs="1"/>
      <element name="module-factory-class-name" type="string" minOccurs="1"/>
      <element name="binding-jar-uri" type="string" minOccurs="0"/>
    </sequence>
  </complexType>
  <complexType name="configuration-supportType">
    <annotation>
      <documentation>If the custom module supports configuration descriptors, 
	then a configuration-support element is required. This element specifies
	- base-root-element   - the root element name of the descriptor being configured.
 	- config-root-element - (optional) the root element of the configuring descriptor.
                                base-root-element is used if not specified.
	- base-namespace      - the namespace associated with the base  descriptors.
	- config-namespace    - (optional) the namespace associated with the  configuration descriptors.
                                base-config-namespace is used if not specified.
	- base-uri            - the relative location of the base descriptor.
	- config-uri          - (optional) relative location of the configuration descriptor.
                                base-config-uri is used if not specified.
	- base-package-name   - the package containing the base descriptor bean interfaces and implementation classes.
	- config-package-name - (optional) the package containing the config descriptor bean interfaces and implementation classes.
                                base-package-name is used if not specified.


	example:

        &lt;weblogic-extension>
	   &lt;custom-module>
             &lt;uri>mymodule&lt;/uri>
             &lt;provider-name>fred&lt;/provider-name>
             &lt;configuration-support>
               &lt;base-root-element>annotation-manifest&lt;/base-root-element>
               &lt;config-root-element>annotation-overrides&lt;/config-root-element>
               &lt;base-namespace>http://www.bea.com/2004/03/wlw/external-config/&lt;/base-namespace>
               &lt;base-uri>META-INF/manifest.xml&lt;/base-uri>
               &lt;config-uri>META-INF/overrides.xml&lt;/config-uri>
               &lt;base-package-name>weblogic.j2ee.descriptor.wl&lt;/base-package-name>
             &lt;/configuration-support>
	   &lt;/custom-module>
        &lt;/weblogic-extension></documentation>
    </annotation>
    <sequence>
      <element name="base-root-element" type="string"/>
      <element name="config-root-element" type="string" minOccurs="0"/>
      <element name="base-namespace" type="string"/>
      <element name="config-namespace" type="string" minOccurs="0"/>
      <element name="base-uri" type="string"/>
      <element name="config-uri" type="string" minOccurs="0"/>
      <element name="base-package-name" type="string"/>
      <element name="config-package-name" type="string" minOccurs="0"/>
    </sequence>
  </complexType>
</schema>
