xsddoc/samples/castor mapping.xsd,1.1,1.2 binding.xsd,1.1,1.2 jdo-conf.xsd,1.1,1.2

Kurt Riede <[email protected]>
Newsgroups gmane.text.xml.xframe.xsddoc.devel
Message-ID <[email protected]>
Update of /cvsroot/xframe/xsddoc/samples/castor
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32681/samples/castor

Modified Files:
	mapping.xsd binding.xsd jdo-conf.xsd 
Log Message:
changed to ASCII

Index: binding.xsd
===================================================================
RCS file: /cvsroot/xframe/xsddoc/samples/castor/binding.xsd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** binding.xsd	25 Mar 2004 14:17:31 -0000	1.1
--- binding.xsd	30 Sep 2004 11:26:32 -0000	1.2
***************
*** 1,247 ****
! <?xml version='1.0' encoding="UTF-8"?>
! <!--
!     Castor Source Generator Binding File XML Schema
!     Namespace: http://castor.exolab.org/SourceGenerator/Binding
!     System:    http://castor.exolab.org/binding.xsd
!     Public:    -//EXOLAB/Castor Binding Schema Version 1.0//EN
! 
!     This schema is used to generate part of the
!     org.exolab.castor.builder.binding package
!     *Note*: This schema is under evolution and subject to change.
!  	This schema is under the Exolab license
!  	
!  	Author: Arnaud Blandin [blandin-k+1zm/[email protected]]
!  -->
! <!-- $Id$ -->
! <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
! 	    targetNamespace="http://www.castor.org/SourceGenerator/Binding"
! 	    xmlns="http://www.castor.org/SourceGenerator/Binding"
! 	    elementFormDefault="unqualified">
! 
!    <!-- The root element -->
!     <xsd:element name="binding">
!         <xsd:annotation>
!             <xsd:documentation>
!                  The root element that contains the different binding elements.
!                  The binding file is written from a schema point of view and follows the
!                  structure of an XML Schema.
!                  The root element can also be used to configure the default binding type. 
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:complexType>
!             <xsd:sequence>
!                 <xsd:element name="include" type="includeType" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element name="package" type="packageType" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element name="namingXML" type="namingXMLType" minOccurs="0" maxOccurs="1"/> 
!                 <xsd:element ref="elementBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element ref="attributeBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element ref="complexTypeBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element ref="groupBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <!-- Not yet implemented -->
!                 <!--<xsd:element name="enumBinding" type="enumBindingType" minOccurs="0" maxOccurs="unbounded"/>-->
!             </xsd:sequence>
!             <!-- the binding type: 'element' approach or 'type' approach -->
!             <xsd:attribute name="defaultBindingType" type="bindingType"/>
!         </xsd:complexType>
!     </xsd:element>
!     
!     <!--global definition to allow reference-->
!     <xsd:element name="elementBinding" type="componentBindingType"/>
!     <xsd:element name="attributeBinding" type="componentBindingType"/>
!     <xsd:element name="complexTypeBinding" type="componentBindingType"/>
!     <xsd:element name="groupBinding" type="componentBindingType"/>
!                 
!     <!--ComplexTypes definitions-->
!     <xsd:complexType name="includeType">
!         <xsd:annotation>
!             <xsd:documentation>
!                  A binding file can include other binding files by specifying the location  
!                  (URI) of the binding files to include.
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:attribute name="URI" type="xsd:anyURI" use="required"/>
!     </xsd:complexType>
! 
!     <xsd:complexType name="packageType">
!         <xsd:annotation>
!             <xsd:documentation>
!                  Mappings between a namespace and a java package can directly 
!                  be defined in the binding file. This element allows also the mapping
!                  between a package and a schemaLocation.
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:sequence>
!            <!--fully qualified name-->
!            <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
!            <xsd:choice>
!                <xsd:element name="namespace" type="xsd:string" minOccurs="1" maxOccurs="1"/>
!                <xsd:element name="schemaLocation" type="xsd:string" minOccurs="1" maxOccurs="1"/>
!            </xsd:choice>
!         </xsd:sequence>
!     </xsd:complexType>
!     
!     <xsd:complexType name="namingXMLType">
!     <xsd:annotation>
!             <xsd:documentation>
!                  This element allows to define naming convention when naming a complexType, element or
!                  modelGroup. Indeed the user can decide of a prefix to add to each class name as well
!                  as a suffix. This naming style won't affect the names entered in the binding file but only 
!                  the XML Names.
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:sequence>
!            <xsd:element name="elementName" type="namingType" minOccurs="0" maxOccurs="1"/>
!            <xsd:element name="complexTypeName" type="namingType" minOccurs="0" maxOccurs="1"/>
!            <xsd:element name="modelGroupName" type="namingType" minOccurs="0" maxOccurs="1"/>
!         </xsd:sequence>
!     </xsd:complexType>
!     
!     <xsd:complexType name="namingType">
!         <xsd:sequence>
!             <xsd:element name="prefix" type="xsd:string" minOccurs="0" maxOccurs="1"/>
!             <xsd:element name="suffix" type="xsd:string" minOccurs="0" maxOccurs="1"/>
!         </xsd:sequence>
!     </xsd:complexType>
! 
!     <xsd:complexType name="componentBindingType">
!          <xsd:annotation>
!             <xsd:documentation>
!                 A binding element is defined to express the binding between an XML Schema Component
!                 and Java class OR a java interface or a java member class. The XML Schema component can 
!                 be an element, an attribute, a complexType or a group. Attribute cannot be mapped to 
!                 class, the reader of a binding file will take care that class or interface are not
!                 used for component whose xml-type is attribute.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:sequence>
!              <xsd:choice>
!                  <xsd:element name="java-class" type="classType"/>
!                  <xsd:element name="interface">
!                      <xsd:complexType>
!                          <xsd:attribute name="name" type="xsd:string" use="required"/>
!                      </xsd:complexType> 
!                  </xsd:element>
!                  <xsd:element name="member" type="fieldType"/>
!              </xsd:choice>
!              <xsd:element ref="elementBinding" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element ref="attributeBinding" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element ref="complexTypeBinding" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element ref="groupBinding" minOccurs="0" maxOccurs="unbounded"/>   
!          </xsd:sequence>
!          <!--the name of the schema component or an XPath expression that identify the component-->
!          <xsd:attribute name="name" type="pathType" use="required"/>
!      </xsd:complexType>
! 
!      <xsd:complexType name="classType">
!         <xsd:annotation>
!             <xsd:documentation>
!                 This type gathers the needed information to generate a Java Class
!                 from a binding file. Options such as generating the equals method,
!                 using wrapper classes for primitives or using bound properties can
!                 be defined via that element. When defined locally the options override
!                 the values defined in the castor.properties file.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:sequence>
!              <xsd:element name="implements" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element name="extends" type="xsd:string" minOccurs="0" maxOccurs="1"/>
!              <!-- not yet implemented -->
!              <!--<xsd:element name="javadoc" type="xsd:string" minOccurs="0" maxOccurs="1"/>-->
!          </xsd:sequence>
!          <!--This attribute allows the local redefinition of a package name-->
!          <xsd:attribute name="package" type="xsd:string"/>
!          <xsd:attribute name="name" type="xsd:string"/>
!          <xsd:attribute name="final" type="xsd:boolean"/>
!          <xsd:attribute name="abstract" type="xsd:boolean"/>
!          <!--properties for generating specific methods-->
!          <xsd:attribute name="equals" type="xsd:boolean"/>
!          <xsd:attribute name="bound" type="xsd:boolean"/>
!      </xsd:complexType>
! 
!      <xsd:complexType name="fieldType">
!          <xsd:annotation>
!             <xsd:documentation>
!                 This type represents the binding for class member. It allows the definition
!                 of its name and java type as well as an implementation of FieldHandler 
!                 to help the Marshalling framework in handling that member. Defining a validator is also
!                 possible. The names given for the validator and the fieldHandler must be fully qualified
!             </xsd:documentation>  
!          </xsd:annotation>
!          <xsd:attribute name="name" type="xsd:string"/>
!          <xsd:attribute name="java-type" type="xsd:string"/>
!          <xsd:attribute name="wrapper" type="xsd:boolean"/>
!          <xsd:attribute name="handler" type="xsd:string"/>
!          <!-- if the java-type is a primitive, the collection type must be an array -->
!          <!-- the validation of the above statement must be enforced in the generated sources -->
!          <xsd:attribute name="collection">
!              <xsd:simpleType>
! 	             <xsd:restriction base="xsd:string">
!                      <xsd:enumeration value="array"/>
!                      <xsd:enumeration value="vector"/>
! 	                 <xsd:enumeration value="arraylist"/>
!                		 <xsd:enumeration value="hashtable"/>
!                		 <xsd:enumeration value="collection"/>
!                		 <xsd:enumeration value="odmg"/>
!                      <xsd:enumeration value="set"/>
!                      <xsd:enumeration value="map"/>
!                  </xsd:restriction>
! 	         </xsd:simpleType> 
! 	     </xsd:attribute>        
! 	     <xsd:attribute name="validator" type="xsd:string"/>
!      </xsd:complexType>
!      
!     <!-- <xsd:complexType name="enumBindingType">
!          <xsd:annotation>
!             <xsd:documentation>
!                 This type allows the mapping between an XML schema enumeration
!                 and a java class that follows the type-safe enumeration paradigm.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:sequence>
!              <xsd:element name="enumClassName">
!                  <xsd:complexType>
!                      <xsd:simpleContent>
!                          <xsd:extension base="xsd:string">
!                              <xsd:attribute name="package" type="xsd:string"/>
!                          </xsd:extension>
!                      </xsd:simpleContent>
!                  </xsd:complexType>
!              </xsd:element>
!              <xsd:element name="enumMember">
!                  <xsd:complexType>
!                      <xsd:sequence>
!                          <xsd:element name="value" type="xsd:string"/>
!                          <xsd:element name="javaName" type="xsd:string"/>
!                      </xsd:sequence>
!                  </xsd:complexType>
!              </xsd:element>
!          </xsd:sequence>
!      </xsd:complexType>-->
! 
!      <!--simpleType definitions-->
!      <xsd:simpleType name="pathType">
!          <xsd:annotation>
!              <xsd:documentation>
!                  This type represents an easy path to access an element or an attribute
!                  inside a schema. It is a direct restriction of the XPath specification.
!              </xsd:documentation>
!          </xsd:annotation>
!          <xsd:restriction base="xsd:string">
!            <!--  <xsd:pattern value="//any Valid XML name(//|@)any Valid XML Name "/>-->
!          </xsd:restriction>
!      </xsd:simpleType>
!      
!      <xsd:simpleType name="bindingType">
!          <xsd:annotation>
!              <xsd:documentation>
!                  List of the allowed values for the binding type from an XML schema
!                  to a java class. The type can either be 'element' or 'complexType'.
!              </xsd:documentation>
!          </xsd:annotation>
!          <xsd:restriction base="xsd:string">
!              <xsd:enumeration value="element"/>
!              <xsd:enumeration value="type"/>
!          </xsd:restriction>
!      </xsd:simpleType>
!      
  </xsd:schema>
\ No newline at end of file
--- 1,247 ----
! <?xml version='1.0' encoding="UTF-8"?>
! <!--
!     Castor Source Generator Binding File XML Schema
!     Namespace: http://castor.exolab.org/SourceGenerator/Binding
!     System:    http://castor.exolab.org/binding.xsd
!     Public:    -//EXOLAB/Castor Binding Schema Version 1.0//EN
! 
!     This schema is used to generate part of the
!     org.exolab.castor.builder.binding package
!     *Note*: This schema is under evolution and subject to change.
!  	This schema is under the Exolab license
!  	
!  	Author: Arnaud Blandin [blandin-k+1zm/[email protected]]
!  -->
! <!-- $Id$ -->
! <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
! 	    targetNamespace="http://www.castor.org/SourceGenerator/Binding"
! 	    xmlns="http://www.castor.org/SourceGenerator/Binding"
! 	    elementFormDefault="unqualified">
! 
!    <!-- The root element -->
!     <xsd:element name="binding">
!         <xsd:annotation>
!             <xsd:documentation>
!                  The root element that contains the different binding elements.
!                  The binding file is written from a schema point of view and follows the
!                  structure of an XML Schema.
!                  The root element can also be used to configure the default binding type. 
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:complexType>
!             <xsd:sequence>
!                 <xsd:element name="include" type="includeType" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element name="package" type="packageType" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element name="namingXML" type="namingXMLType" minOccurs="0" maxOccurs="1"/> 
!                 <xsd:element ref="elementBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element ref="attributeBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element ref="complexTypeBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <xsd:element ref="groupBinding" minOccurs="0" maxOccurs="unbounded"/>
!                 <!-- Not yet implemented -->
!                 <!--<xsd:element name="enumBinding" type="enumBindingType" minOccurs="0" maxOccurs="unbounded"/>-->
!             </xsd:sequence>
!             <!-- the binding type: 'element' approach or 'type' approach -->
!             <xsd:attribute name="defaultBindingType" type="bindingType"/>
!         </xsd:complexType>
!     </xsd:element>
!     
!     <!--global definition to allow reference-->
!     <xsd:element name="elementBinding" type="componentBindingType"/>
!     <xsd:element name="attributeBinding" type="componentBindingType"/>
!     <xsd:element name="complexTypeBinding" type="componentBindingType"/>
!     <xsd:element name="groupBinding" type="componentBindingType"/>
!                 
!     <!--ComplexTypes definitions-->
!     <xsd:complexType name="includeType">
!         <xsd:annotation>
!             <xsd:documentation>
!                  A binding file can include other binding files by specifying the location  
!                  (URI) of the binding files to include.
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:attribute name="URI" type="xsd:anyURI" use="required"/>
!     </xsd:complexType>
! 
!     <xsd:complexType name="packageType">
!         <xsd:annotation>
!             <xsd:documentation>
!                  Mappings between a namespace and a java package can directly 
!                  be defined in the binding file. This element allows also the mapping
!                  between a package and a schemaLocation.
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:sequence>
!            <!--fully qualified name-->
!            <xsd:element name="name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
!            <xsd:choice>
!                <xsd:element name="namespace" type="xsd:string" minOccurs="1" maxOccurs="1"/>
!                <xsd:element name="schemaLocation" type="xsd:string" minOccurs="1" maxOccurs="1"/>
!            </xsd:choice>
!         </xsd:sequence>
!     </xsd:complexType>
!     
!     <xsd:complexType name="namingXMLType">
!     <xsd:annotation>
!             <xsd:documentation>
!                  This element allows to define naming convention when naming a complexType, element or
!                  modelGroup. Indeed the user can decide of a prefix to add to each class name as well
!                  as a suffix. This naming style won't affect the names entered in the binding file but only 
!                  the XML Names.
!             </xsd:documentation>
!         </xsd:annotation>
!         <xsd:sequence>
!            <xsd:element name="elementName" type="namingType" minOccurs="0" maxOccurs="1"/>
!            <xsd:element name="complexTypeName" type="namingType" minOccurs="0" maxOccurs="1"/>
!            <xsd:element name="modelGroupName" type="namingType" minOccurs="0" maxOccurs="1"/>
!         </xsd:sequence>
!     </xsd:complexType>
!     
!     <xsd:complexType name="namingType">
!         <xsd:sequence>
!             <xsd:element name="prefix" type="xsd:string" minOccurs="0" maxOccurs="1"/>
!             <xsd:element name="suffix" type="xsd:string" minOccurs="0" maxOccurs="1"/>
!         </xsd:sequence>
!     </xsd:complexType>
! 
!     <xsd:complexType name="componentBindingType">
!          <xsd:annotation>
!             <xsd:documentation>
!                 A binding element is defined to express the binding between an XML Schema Component
!                 and Java class OR a java interface or a java member class. The XML Schema component can 
!                 be an element, an attribute, a complexType or a group. Attribute cannot be mapped to 
!                 class, the reader of a binding file will take care that class or interface are not
!                 used for component whose xml-type is attribute.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:sequence>
!              <xsd:choice>
!                  <xsd:element name="java-class" type="classType"/>
!                  <xsd:element name="interface">
!                      <xsd:complexType>
!                          <xsd:attribute name="name" type="xsd:string" use="required"/>
!                      </xsd:complexType> 
!                  </xsd:element>
!                  <xsd:element name="member" type="fieldType"/>
!              </xsd:choice>
!              <xsd:element ref="elementBinding" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element ref="attributeBinding" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element ref="complexTypeBinding" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element ref="groupBinding" minOccurs="0" maxOccurs="unbounded"/>   
!          </xsd:sequence>
!          <!--the name of the schema component or an XPath expression that identify the component-->
!          <xsd:attribute name="name" type="pathType" use="required"/>
!      </xsd:complexType>
! 
!      <xsd:complexType name="classType">
!         <xsd:annotation>
!             <xsd:documentation>
!                 This type gathers the needed information to generate a Java Class
!                 from a binding file. Options such as generating the equals method,
!                 using wrapper classes for primitives or using bound properties can
!                 be defined via that element. When defined locally the options override
!                 the values defined in the castor.properties file.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:sequence>
!              <xsd:element name="implements" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/>
!              <xsd:element name="extends" type="xsd:string" minOccurs="0" maxOccurs="1"/>
!              <!-- not yet implemented -->
!              <!--<xsd:element name="javadoc" type="xsd:string" minOccurs="0" maxOccurs="1"/>-->
!          </xsd:sequence>
!          <!--This attribute allows the local redefinition of a package name-->
!          <xsd:attribute name="package" type="xsd:string"/>
!          <xsd:attribute name="name" type="xsd:string"/>
!          <xsd:attribute name="final" type="xsd:boolean"/>
!          <xsd:attribute name="abstract" type="xsd:boolean"/>
!          <!--properties for generating specific methods-->
!          <xsd:attribute name="equals" type="xsd:boolean"/>
!          <xsd:attribute name="bound" type="xsd:boolean"/>
!      </xsd:complexType>
! 
!      <xsd:complexType name="fieldType">
!          <xsd:annotation>
!             <xsd:documentation>
!                 This type represents the binding for class member. It allows the definition
!                 of its name and java type as well as an implementation of FieldHandler 
!                 to help the Marshalling framework in handling that member. Defining a validator is also
!                 possible. The names given for the validator and the fieldHandler must be fully qualified
!             </xsd:documentation>  
!          </xsd:annotation>
!          <xsd:attribute name="name" type="xsd:string"/>
!          <xsd:attribute name="java-type" type="xsd:string"/>
!          <xsd:attribute name="wrapper" type="xsd:boolean"/>
!          <xsd:attribute name="handler" type="xsd:string"/>
!          <!-- if the java-type is a primitive, the collection type must be an array -->
!          <!-- the validation of the above statement must be enforced in the generated sources -->
!          <xsd:attribute name="collection">
!              <xsd:simpleType>
! 	             <xsd:restriction base="xsd:string">
!                      <xsd:enumeration value="array"/>
!                      <xsd:enumeration value="vector"/>
! 	                 <xsd:enumeration value="arraylist"/>
!                		 <xsd:enumeration value="hashtable"/>
!                		 <xsd:enumeration value="collection"/>
!                		 <xsd:enumeration value="odmg"/>
!                      <xsd:enumeration value="set"/>
!                      <xsd:enumeration value="map"/>
!                  </xsd:restriction>
! 	         </xsd:simpleType> 
! 	     </xsd:attribute>        
! 	     <xsd:attribute name="validator" type="xsd:string"/>
!      </xsd:complexType>
!      
!     <!-- <xsd:complexType name="enumBindingType">
!          <xsd:annotation>
!             <xsd:documentation>
!                 This type allows the mapping between an XML schema enumeration
!                 and a java class that follows the type-safe enumeration paradigm.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:sequence>
!              <xsd:element name="enumClassName">
!                  <xsd:complexType>
!                      <xsd:simpleContent>
!                          <xsd:extension base="xsd:string">
!                              <xsd:attribute name="package" type="xsd:string"/>
!                          </xsd:extension>
!                      </xsd:simpleContent>
!                  </xsd:complexType>
!              </xsd:element>
!              <xsd:element name="enumMember">
!                  <xsd:complexType>
!                      <xsd:sequence>
!                          <xsd:element name="value" type="xsd:string"/>
!                          <xsd:element name="javaName" type="xsd:string"/>
!                      </xsd:sequence>
!                  </xsd:complexType>
!              </xsd:element>
!          </xsd:sequence>
!      </xsd:complexType>-->
! 
!      <!--simpleType definitions-->
!      <xsd:simpleType name="pathType">
!          <xsd:annotation>
!              <xsd:documentation>
!                  This type represents an easy path to access an element or an attribute
!                  inside a schema. It is a direct restriction of the XPath specification.
!              </xsd:documentation>
!          </xsd:annotation>
!          <xsd:restriction base="xsd:string">
!            <!--  <xsd:pattern value="//any Valid XML name(//|@)any Valid XML Name "/>-->
!          </xsd:restriction>
!      </xsd:simpleType>
!      
!      <xsd:simpleType name="bindingType">
!          <xsd:annotation>
!              <xsd:documentation>
!                  List of the allowed values for the binding type from an XML schema
!                  to a java class. The type can either be 'element' or 'complexType'.
!              </xsd:documentation>
!          </xsd:annotation>
!          <xsd:restriction base="xsd:string">
!              <xsd:enumeration value="element"/>
!              <xsd:enumeration value="type"/>
!          </xsd:restriction>
!      </xsd:simpleType>
!      
  </xsd:schema>
\ No newline at end of file

Index: mapping.xsd
===================================================================
RCS file: /cvsroot/xframe/xsddoc/samples/castor/mapping.xsd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** mapping.xsd	25 Mar 2004 14:17:31 -0000	1.1
--- mapping.xsd	30 Sep 2004 11:26:32 -0000	1.2
***************
*** 1,292 ****
! <?xml version="1.0" encoding="UTF-8"?>
! <!--DOCTYPE schema PUBLIC "-//W3C/DTD XML Schema Version 1.0//EN"
!                         "http://www.w3.org/TR/2000/WD-xmlschema-1-20000225/structures.dtd"-->
! <!--
!     Castor Object Mapping XML Schema
! 
!     Namespace: http://castor.exolab.org/
!     System:    http://castor.exolab.org/mapping.xsd
!     Public:    -//EXOLAB/Castor Object Mapping Schema Version 1.0//EN
! 
!     *Note*: This schema is under evolution and subject to change.
! 
!  -->
! <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
!   targetNamespace="http://castor.exolab.org/"
!    xmlns="http://castor.exolab.org/"
!    version="0.9.4">
! 
!   <xsd:element name="mapping">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element name="description"   type="xsd:string" minOccurs="0" maxOccurs="1" />
!         <xsd:element ref="include"        minOccurs="0" maxOccurs="unbounded" />
!         <xsd:element ref="class"          minOccurs="0" maxOccurs="unbounded" />
!         <xsd:element ref="key-generator"  minOccurs="0" maxOccurs="unbounded" />
!       </xsd:sequence>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="include">
!     <xsd:complexType>
!       <xsd:attribute name="href" type="xsd:string" use="required"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="class">
!      <xsd:complexType>
!         <xsd:sequence>
!            <xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
!            <xsd:element ref="cache-type"   minOccurs="0" maxOccurs="1" />
!            <xsd:element ref="map-to" minOccurs="0" maxOccurs="1" />
!            <xsd:choice minOccurs="1">
!               <xsd:element ref="field" minOccurs="0" maxOccurs="unbounded"/>
!               <xsd:element ref="container" minOccurs="0" maxOccurs="unbounded"/>
!            </xsd:choice>
!         </xsd:sequence>
!         <xsd:attribute name="name"     type="xsd:ID"         use="required"/>
!         <xsd:attribute name="extends"  type="xsd:IDREF"      use="optional"/>
!         <xsd:attribute name="depends"  type="xsd:IDREF"      use="optional"/>
!         <xsd:attribute name="identity" type="xsd:NMTOKENS"   use="optional"/>
!         <xsd:attribute name="timestamp" type="xsd:NMTOKEN"   use="optional"/>
!         <xsd:attribute name="access"   default="shared"    use="optional">
!            <xsd:simpleType>
!               <xsd:restriction base="xsd:string">
!                  <xsd:enumeration value="read-only"/>
!                  <xsd:enumeration value="shared"/>
!                  <xsd:enumeration value="exclusive"/>
!                  <xsd:enumeration value="db-locked"/>
!               </xsd:restriction>
!            </xsd:simpleType>
!         </xsd:attribute>
!         <xsd:attribute name="key-generator" type="xsd:string"   use="optional"/>
!         <xsd:attribute name="auto-complete" type="xsd:boolean"  use="optional" default="false"/>
!         <xsd:attribute name="verify-constructable" type="xsd:boolean"  use="optional" default="true"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="map-to">
!     <xsd:complexType>
!       <xsd:attribute name="table"     type="xsd:NMTOKEN"  use="optional"/>
!       <xsd:attribute name="xml"       type="xsd:string"   use="optional"/>
!       <xsd:attribute name="ns-uri"    type="xsd:string"   use="optional"/>
!       <xsd:attribute name="ns-prefix" type="xsd:NMTOKEN"  use="optional"/>
!       <xsd:attribute name="ldap-dn"   type="xsd:string"   use="optional"/>
!       <xsd:attribute name="ldap-oc"   type="xsd:string"   use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="field">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element name="description"   type="xsd:string" minOccurs="0" maxOccurs="1" />
!         <xsd:element ref="sql"            minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="bind-xml"       minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="ldap"           minOccurs="0" maxOccurs="1"/>
!       </xsd:sequence>
! 
!       <xsd:attribute name="name"          type="xsd:string" use="required"/>
!       <xsd:attribute name="type"          type="xsd:string" use="optional"/>
!       <xsd:attribute name="required"      type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="transient"     type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="direct"        type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="lazy"          type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="container"     type="xsd:boolean"  use="optional"/>
!       <xsd:attribute name="get-method"    type="xsd:string"  use="optional"/>
!       <xsd:attribute name="has-method"    type="xsd:string"  use="optional"/>
!       <xsd:attribute name="set-method"    type="xsd:string"  use="optional"/>
!       <xsd:attribute name="create-method" type="xsd:string"  use="optional"/>
!       <xsd:attribute name="handler"       type="xsd:string"   use="optional"/>
!       <xsd:attribute name="collection"    use="optional">
!          <xsd:simpleType>
!             <xsd:restriction base="xsd:string">
!                <xsd:enumeration value="array"/>
!                <xsd:enumeration value="vector"/>
!                <xsd:enumeration value="arraylist"/>
!                <xsd:enumeration value="hashtable"/>
!                <xsd:enumeration value="collection"/>
!                <xsd:enumeration value="set"/>
!                <xsd:enumeration value="map"/>
!                <xsd:enumeration value="enumerate"/>
!             </xsd:restriction>
!          </xsd:simpleType>
!       </xsd:attribute>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="container">
!     <xsd:complexType>
!        <xsd:sequence>
!           <xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
!           <xsd:element ref="field" minOccurs="1"/>
!        </xsd:sequence>
!        <xsd:attribute name="name"          type="xsd:NMTOKEN" use="required"/>
!        <xsd:attribute name="type"          type="xsd:NMTOKEN" use="optional"/>
!        <xsd:attribute name="required"      type="xsd:boolean" use="optional"  default="false"/>
!        <xsd:attribute name="direct"        type="xsd:boolean" use="optional"  default="false"/>
!        <xsd:attribute name="get-method"    type="xsd:NMTOKEN" use="optional"/>
!        <xsd:attribute name="set-method"    type="xsd:NMTOKEN" use="optional"/>
!        <xsd:attribute name="create-method" type="xsd:NMTOKEN" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="sql">
!     <xsd:complexType>
!       <xsd:attribute name="name"       type="xsd:NMTOKENS"   use="optional"/>
!       <xsd:attribute name="type"       type="xsd:string"   use="optional"/>
!       <xsd:attribute name="many-table" type="xsd:NMTOKEN"    use="optional"/>
!       <xsd:attribute name="many-key"   type="xsd:NMTOKENS"   use="optional"/>
!       <xsd:attribute name="read-only"  type="xsd:boolean"    use="optional" default="false"/>
! 
!       <!-- signals that this field is transient for database mapping (ie should be ignored) -->
!       <xsd:attribute name="transient" type="xsd:boolean" use="optional"/>
! 
! 
!       <xsd:attribute name="dirty"  default="check"  use="optional">
!         <xsd:simpleType>
!           <xsd:restriction base="xsd:string">
!             <xsd:enumeration value="check"/>
!             <xsd:enumeration value="ignore"/>
!           </xsd:restriction>
!         </xsd:simpleType>
!       </xsd:attribute>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <!--
!        The 'bind-xml' element is used for specifying XML specific databinding
!        properties and behavior for a specific field. 'bind-xml' may only appear
!        as a child of a 'field' element.
!   -->
!   <xsd:element name="bind-xml">
!     <xsd:annotation>
!        <xsd:documentation>
!           The 'bind-xml' element is used for specifying XML specific databinding
!           properties and behavior for a specific field. 'bind-xml' may only appear
!           as a child of a 'field' element.
!        </xsd:documentation>
!     </xsd:annotation>
!     <xsd:complexType>
! 
!       <!--
!          An optional attribute used for specifying the XML name for the
!          field associated with the 'bind-xml' element.
!        -->
!        <xsd:attribute name="name" type="xsd:QName"  use="optional">
!           <xsd:annotation>
!              <xsd:documentation>
!                 An optional attribute used for specifying the XML name for the
!                 field associated with the 'bind-xml' element.
!              </xsd:documentation>
!           </xsd:annotation>
!        </xsd:attribute>
! 
!       <xsd:attribute name="type" type="xsd:NMTOKEN"  use="optional"/>
! 
!       <!--
!            Allows specifying how Castor should automatically determines
!            the XML name of this field when no name has been specified.
!       -->
!       <xsd:attribute name="auto-naming" use="optional">
!          <xsd:annotation>
!             <xsd:documentation>
!                Allows specifying how Castor should automatically determines
!                the XML name of this field when no name has been specified.
!                In most cases the XML name is determined by using the field name,
!                but in some cases the user may want to use the Class name of
!                the field type. This attribute allows choosing between the
!                two approaches. If this attribute is not specified, the field
!                name is used as the XML name.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:simpleType>
!             <xsd:restriction base="xsd:string">
!                <xsd:enumeration value="deriveByClass"/>
!                <xsd:enumeration value="deriveByField"/>
!             </xsd:restriction>
!          </xsd:simpleType>
!       </xsd:attribute>
! 
!       <!--
!           Allows specifying a nested location path for this field,
!           the value should just be a simplified XPath like value
!           where names are separated by "/".
!        -->
!       <xsd:attribute name="location" type="xsd:string" use="optional">
!          <xsd:annotation>
!             <xsd:documentation>
!                Allows specifying a nested location path for this field,
!                the value should just be a simplified XPath like value
!                where names are separated by "/".
!             </xsd:documentation>
!          </xsd:annotation>
!       </xsd:attribute>
! 
!       <!-- Allows overriding the matching rule -->
!       <xsd:attribute name="matches" type="xsd:string" use="optional"/>
! 
! 
!       <!-- Signal that this field should be marshalled as a reference -->
!       <xsd:attribute name="reference" type="xsd:boolean" use="optional"/>
! 
!      <!-- NodeType for the XML node -->
!       <xsd:attribute name="node" use="optional">
!          <xsd:simpleType>
!             <xsd:restriction base="xsd:string">
!                <xsd:enumeration value="attribute"/>
!                <xsd:enumeration value="element"/>
!                <xsd:enumeration value="namespace"/>
!                <xsd:enumeration value="text"/>
!             </xsd:restriction>
!          </xsd:simpleType>
!       </xsd:attribute>
! 
!       <xsd:attribute name="QName-prefix" type="xsd:NMTOKEN" use="optional"/>
! 
!       <!-- Signal that this field is transient for XML (ie should be ignored) -->
!       <xsd:attribute name="transient" type="xsd:boolean" use="optional"/>
! 
!     </xsd:complexType>
!   </xsd:element>
! 
! 
!   <xsd:element name="ldap">
!     <xsd:complexType>
!       <xsd:attribute name="name" type="xsd:NMTOKEN" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="key-generator">
!     <xsd:complexType>
!       <xsd:sequence>
!          <xsd:element ref="param" minOccurs="0" maxOccurs="unbounded" />
!       </xsd:sequence>
!       <xsd:attribute name="name"  type="xsd:ID"     use="required"/>
!       <xsd:attribute name="alias" type="xsd:string" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="cache-type">
!      <xsd:complexType>
!         <xsd:attribute name="type" use="optional" default="count-limited">
!            <xsd:simpleType>
!               <xsd:restriction base="xsd:string">
!                  <xsd:enumeration value="none"/>
!                  <xsd:enumeration value="count-limited"/>
!                  <xsd:enumeration value="time-limited"/>
!                  <xsd:enumeration value="unlimited"/>
!               </xsd:restriction>
!            </xsd:simpleType>
!         </xsd:attribute>
!         <xsd:attribute name="capacity" type="xsd:integer" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="param">
!     <xsd:complexType>
!       <xsd:attribute name="name"  type="xsd:string"  use="required"/>
!       <xsd:attribute name="value" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
! 
! </xsd:schema>
--- 1,292 ----
! <?xml version="1.0" encoding="UTF-8"?>
! <!--DOCTYPE schema PUBLIC "-//W3C/DTD XML Schema Version 1.0//EN"
!                         "http://www.w3.org/TR/2000/WD-xmlschema-1-20000225/structures.dtd"-->
! <!--
!     Castor Object Mapping XML Schema
! 
!     Namespace: http://castor.exolab.org/
!     System:    http://castor.exolab.org/mapping.xsd
!     Public:    -//EXOLAB/Castor Object Mapping Schema Version 1.0//EN
! 
!     *Note*: This schema is under evolution and subject to change.
! 
!  -->
! <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
!   targetNamespace="http://castor.exolab.org/"
!    xmlns="http://castor.exolab.org/"
!    version="0.9.4">
! 
!   <xsd:element name="mapping">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element name="description"   type="xsd:string" minOccurs="0" maxOccurs="1" />
!         <xsd:element ref="include"        minOccurs="0" maxOccurs="unbounded" />
!         <xsd:element ref="class"          minOccurs="0" maxOccurs="unbounded" />
!         <xsd:element ref="key-generator"  minOccurs="0" maxOccurs="unbounded" />
!       </xsd:sequence>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="include">
!     <xsd:complexType>
!       <xsd:attribute name="href" type="xsd:string" use="required"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="class">
!      <xsd:complexType>
!         <xsd:sequence>
!            <xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
!            <xsd:element ref="cache-type"   minOccurs="0" maxOccurs="1" />
!            <xsd:element ref="map-to" minOccurs="0" maxOccurs="1" />
!            <xsd:choice minOccurs="1">
!               <xsd:element ref="field" minOccurs="0" maxOccurs="unbounded"/>
!               <xsd:element ref="container" minOccurs="0" maxOccurs="unbounded"/>
!            </xsd:choice>
!         </xsd:sequence>
!         <xsd:attribute name="name"     type="xsd:ID"         use="required"/>
!         <xsd:attribute name="extends"  type="xsd:IDREF"      use="optional"/>
!         <xsd:attribute name="depends"  type="xsd:IDREF"      use="optional"/>
!         <xsd:attribute name="identity" type="xsd:NMTOKENS"   use="optional"/>
!         <xsd:attribute name="timestamp" type="xsd:NMTOKEN"   use="optional"/>
!         <xsd:attribute name="access"   default="shared"    use="optional">
!            <xsd:simpleType>
!               <xsd:restriction base="xsd:string">
!                  <xsd:enumeration value="read-only"/>
!                  <xsd:enumeration value="shared"/>
!                  <xsd:enumeration value="exclusive"/>
!                  <xsd:enumeration value="db-locked"/>
!               </xsd:restriction>
!            </xsd:simpleType>
!         </xsd:attribute>
!         <xsd:attribute name="key-generator" type="xsd:string"   use="optional"/>
!         <xsd:attribute name="auto-complete" type="xsd:boolean"  use="optional" default="false"/>
!         <xsd:attribute name="verify-constructable" type="xsd:boolean"  use="optional" default="true"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="map-to">
!     <xsd:complexType>
!       <xsd:attribute name="table"     type="xsd:NMTOKEN"  use="optional"/>
!       <xsd:attribute name="xml"       type="xsd:string"   use="optional"/>
!       <xsd:attribute name="ns-uri"    type="xsd:string"   use="optional"/>
!       <xsd:attribute name="ns-prefix" type="xsd:NMTOKEN"  use="optional"/>
!       <xsd:attribute name="ldap-dn"   type="xsd:string"   use="optional"/>
!       <xsd:attribute name="ldap-oc"   type="xsd:string"   use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="field">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element name="description"   type="xsd:string" minOccurs="0" maxOccurs="1" />
!         <xsd:element ref="sql"            minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="bind-xml"       minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="ldap"           minOccurs="0" maxOccurs="1"/>
!       </xsd:sequence>
! 
!       <xsd:attribute name="name"          type="xsd:string" use="required"/>
!       <xsd:attribute name="type"          type="xsd:string" use="optional"/>
!       <xsd:attribute name="required"      type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="transient"     type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="direct"        type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="lazy"          type="xsd:boolean"  use="optional"   default="false"/>
!       <xsd:attribute name="container"     type="xsd:boolean"  use="optional"/>
!       <xsd:attribute name="get-method"    type="xsd:string"  use="optional"/>
!       <xsd:attribute name="has-method"    type="xsd:string"  use="optional"/>
!       <xsd:attribute name="set-method"    type="xsd:string"  use="optional"/>
!       <xsd:attribute name="create-method" type="xsd:string"  use="optional"/>
!       <xsd:attribute name="handler"       type="xsd:string"   use="optional"/>
!       <xsd:attribute name="collection"    use="optional">
!          <xsd:simpleType>
!             <xsd:restriction base="xsd:string">
!                <xsd:enumeration value="array"/>
!                <xsd:enumeration value="vector"/>
!                <xsd:enumeration value="arraylist"/>
!                <xsd:enumeration value="hashtable"/>
!                <xsd:enumeration value="collection"/>
!                <xsd:enumeration value="set"/>
!                <xsd:enumeration value="map"/>
!                <xsd:enumeration value="enumerate"/>
!             </xsd:restriction>
!          </xsd:simpleType>
!       </xsd:attribute>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="container">
!     <xsd:complexType>
!        <xsd:sequence>
!           <xsd:element name="description" type="xsd:string" minOccurs="0" maxOccurs="1" />
!           <xsd:element ref="field" minOccurs="1"/>
!        </xsd:sequence>
!        <xsd:attribute name="name"          type="xsd:NMTOKEN" use="required"/>
!        <xsd:attribute name="type"          type="xsd:NMTOKEN" use="optional"/>
!        <xsd:attribute name="required"      type="xsd:boolean" use="optional"  default="false"/>
!        <xsd:attribute name="direct"        type="xsd:boolean" use="optional"  default="false"/>
!        <xsd:attribute name="get-method"    type="xsd:NMTOKEN" use="optional"/>
!        <xsd:attribute name="set-method"    type="xsd:NMTOKEN" use="optional"/>
!        <xsd:attribute name="create-method" type="xsd:NMTOKEN" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="sql">
!     <xsd:complexType>
!       <xsd:attribute name="name"       type="xsd:NMTOKENS"   use="optional"/>
!       <xsd:attribute name="type"       type="xsd:string"   use="optional"/>
!       <xsd:attribute name="many-table" type="xsd:NMTOKEN"    use="optional"/>
!       <xsd:attribute name="many-key"   type="xsd:NMTOKENS"   use="optional"/>
!       <xsd:attribute name="read-only"  type="xsd:boolean"    use="optional" default="false"/>
! 
!       <!-- signals that this field is transient for database mapping (ie should be ignored) -->
!       <xsd:attribute name="transient" type="xsd:boolean" use="optional"/>
! 
! 
!       <xsd:attribute name="dirty"  default="check"  use="optional">
!         <xsd:simpleType>
!           <xsd:restriction base="xsd:string">
!             <xsd:enumeration value="check"/>
!             <xsd:enumeration value="ignore"/>
!           </xsd:restriction>
!         </xsd:simpleType>
!       </xsd:attribute>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <!--
!        The 'bind-xml' element is used for specifying XML specific databinding
!        properties and behavior for a specific field. 'bind-xml' may only appear
!        as a child of a 'field' element.
!   -->
!   <xsd:element name="bind-xml">
!     <xsd:annotation>
!        <xsd:documentation>
!           The 'bind-xml' element is used for specifying XML specific databinding
!           properties and behavior for a specific field. 'bind-xml' may only appear
!           as a child of a 'field' element.
!        </xsd:documentation>
!     </xsd:annotation>
!     <xsd:complexType>
! 
!       <!--
!          An optional attribute used for specifying the XML name for the
!          field associated with the 'bind-xml' element.
!        -->
!        <xsd:attribute name="name" type="xsd:QName"  use="optional">
!           <xsd:annotation>
!              <xsd:documentation>
!                 An optional attribute used for specifying the XML name for the
!                 field associated with the 'bind-xml' element.
!              </xsd:documentation>
!           </xsd:annotation>
!        </xsd:attribute>
! 
!       <xsd:attribute name="type" type="xsd:NMTOKEN"  use="optional"/>
! 
!       <!--
!            Allows specifying how Castor should automatically determines
!            the XML name of this field when no name has been specified.
!       -->
!       <xsd:attribute name="auto-naming" use="optional">
!          <xsd:annotation>
!             <xsd:documentation>
!                Allows specifying how Castor should automatically determines
!                the XML name of this field when no name has been specified.
!                In most cases the XML name is determined by using the field name,
!                but in some cases the user may want to use the Class name of
!                the field type. This attribute allows choosing between the
!                two approaches. If this attribute is not specified, the field
!                name is used as the XML name.
!             </xsd:documentation>
!          </xsd:annotation>
!          <xsd:simpleType>
!             <xsd:restriction base="xsd:string">
!                <xsd:enumeration value="deriveByClass"/>
!                <xsd:enumeration value="deriveByField"/>
!             </xsd:restriction>
!          </xsd:simpleType>
!       </xsd:attribute>
! 
!       <!--
!           Allows specifying a nested location path for this field,
!           the value should just be a simplified XPath like value
!           where names are separated by "/".
!        -->
!       <xsd:attribute name="location" type="xsd:string" use="optional">
!          <xsd:annotation>
!             <xsd:documentation>
!                Allows specifying a nested location path for this field,
!                the value should just be a simplified XPath like value
!                where names are separated by "/".
!             </xsd:documentation>
!          </xsd:annotation>
!       </xsd:attribute>
! 
!       <!-- Allows overriding the matching rule -->
!       <xsd:attribute name="matches" type="xsd:string" use="optional"/>
! 
! 
!       <!-- Signal that this field should be marshalled as a reference -->
!       <xsd:attribute name="reference" type="xsd:boolean" use="optional"/>
! 
!      <!-- NodeType for the XML node -->
!       <xsd:attribute name="node" use="optional">
!          <xsd:simpleType>
!             <xsd:restriction base="xsd:string">
!                <xsd:enumeration value="attribute"/>
!                <xsd:enumeration value="element"/>
!                <xsd:enumeration value="namespace"/>
!                <xsd:enumeration value="text"/>
!             </xsd:restriction>
!          </xsd:simpleType>
!       </xsd:attribute>
! 
!       <xsd:attribute name="QName-prefix" type="xsd:NMTOKEN" use="optional"/>
! 
!       <!-- Signal that this field is transient for XML (ie should be ignored) -->
!       <xsd:attribute name="transient" type="xsd:boolean" use="optional"/>
! 
!     </xsd:complexType>
!   </xsd:element>
! 
! 
!   <xsd:element name="ldap">
!     <xsd:complexType>
!       <xsd:attribute name="name" type="xsd:NMTOKEN" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="key-generator">
!     <xsd:complexType>
!       <xsd:sequence>
!          <xsd:element ref="param" minOccurs="0" maxOccurs="unbounded" />
!       </xsd:sequence>
!       <xsd:attribute name="name"  type="xsd:ID"     use="required"/>
!       <xsd:attribute name="alias" type="xsd:string" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="cache-type">
!      <xsd:complexType>
!         <xsd:attribute name="type" use="optional" default="count-limited">
!            <xsd:simpleType>
!               <xsd:restriction base="xsd:string">
!                  <xsd:enumeration value="none"/>
!                  <xsd:enumeration value="count-limited"/>
!                  <xsd:enumeration value="time-limited"/>
!                  <xsd:enumeration value="unlimited"/>
!               </xsd:restriction>
!            </xsd:simpleType>
!         </xsd:attribute>
!         <xsd:attribute name="capacity" type="xsd:integer" use="optional"/>
!     </xsd:complexType>
!   </xsd:element>
! 
!   <xsd:element name="param">
!     <xsd:complexType>
!       <xsd:attribute name="name"  type="xsd:string"  use="required"/>
!       <xsd:attribute name="value" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
! 
! </xsd:schema>

Index: jdo-conf.xsd
===================================================================
RCS file: /cvsroot/xframe/xsddoc/samples/castor/jdo-conf.xsd,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** jdo-conf.xsd	25 Mar 2004 14:17:31 -0000	1.1
--- jdo-conf.xsd	30 Sep 2004 11:26:32 -0000	1.2
***************
*** 1,68 ****
! <?xml version="1.0" encoding="UTF-8"?>
! <!--DOCTYPE schema PUBLIC "-//W3C/DTD XML Schema Version 1.0//EN"
!                           "http://www.w3.org/TR/2000/WD-xmlschema-1-20000225/structures.dtd"-->
! <!--
! 
!     The Castor JDO database configuration file XML Schema
! 
!     Namespace: http://castor.exolab.org/JDO
!     System:    http://castor.exolab.org/jdo-conf.xsd
!     Public:    -//EXOLAB/Castor JDO Configuration Schema Version 1.0//EN
! 
!     Note: This schema is under evolution and subject to change.
! 
!  -->
! <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://castor.exolab.org/JDO" targetNamespace="http://castor.exolab.org/JDO" version="0.8">
!   <xsd:element name="database">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element ref="driver" minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="data-source" minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="jndi" minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="mapping" minOccurs="1"/>
!       </xsd:sequence>
!       <xsd:attribute name="name" type="xsd:ID" />
!       <xsd:attribute name="engine" type="xsd:string" use="optional" default="generic"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="mapping">
!     <xsd:complexType>
!       <xsd:attribute name="href" type="xsd:string" use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="driver">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element ref="param" minOccurs="0"/>
!       </xsd:sequence>
!       <xsd:attribute name="url" type="xsd:string" use="required"/>
!       <xsd:attribute name="class-name" type="xsd:string" use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="param">
!     <xsd:complexType>
!       <xsd:attribute name="name" type="xsd:string"  use="required"/>
!       <xsd:attribute name="value" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="data-source">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element ref="params" minOccurs="1" maxOccurs="1"/>
!       </xsd:sequence>
!       <xsd:attribute name="class-name" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="params">
!   <xsd:complexType>
!   <xsd:sequence>
!     <xsd:any maxOccurs="unbounded"></xsd:any>
!   </xsd:sequence>
!   </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="jndi">
!     <xsd:complexType>
!       <xsd:attribute name="name" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
! </xsd:schema>
--- 1,68 ----
! <?xml version="1.0" encoding="UTF-8"?>
! <!--DOCTYPE schema PUBLIC "-//W3C/DTD XML Schema Version 1.0//EN"
!                           "http://www.w3.org/TR/2000/WD-xmlschema-1-20000225/structures.dtd"-->
! <!--
! 
!     The Castor JDO database configuration file XML Schema
! 
!     Namespace: http://castor.exolab.org/JDO
!     System:    http://castor.exolab.org/jdo-conf.xsd
!     Public:    -//EXOLAB/Castor JDO Configuration Schema Version 1.0//EN
! 
!     Note: This schema is under evolution and subject to change.
! 
!  -->
! <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://castor.exolab.org/JDO" targetNamespace="http://castor.exolab.org/JDO" version="0.8">
!   <xsd:element name="database">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element ref="driver" minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="data-source" minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="jndi" minOccurs="0" maxOccurs="1"/>
!         <xsd:element ref="mapping" minOccurs="1"/>
!       </xsd:sequence>
!       <xsd:attribute name="name" type="xsd:ID" />
!       <xsd:attribute name="engine" type="xsd:string" use="optional" default="generic"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="mapping">
!     <xsd:complexType>
!       <xsd:attribute name="href" type="xsd:string" use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="driver">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element ref="param" minOccurs="0"/>
!       </xsd:sequence>
!       <xsd:attribute name="url" type="xsd:string" use="required"/>
!       <xsd:attribute name="class-name" type="xsd:string" use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="param">
!     <xsd:complexType>
!       <xsd:attribute name="name" type="xsd:string"  use="required"/>
!       <xsd:attribute name="value" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="data-source">
!     <xsd:complexType>
!       <xsd:sequence>
!         <xsd:element ref="params" minOccurs="1" maxOccurs="1"/>
!       </xsd:sequence>
!       <xsd:attribute name="class-name" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="params">
!   <xsd:complexType>
!   <xsd:sequence>
!     <xsd:any maxOccurs="unbounded"></xsd:any>
!   </xsd:sequence>
!   </xsd:complexType>
!   </xsd:element>
!   <xsd:element name="jndi">
!     <xsd:complexType>
!       <xsd:attribute name="name" type="xsd:string"  use="required"/>
!     </xsd:complexType>
!   </xsd:element>
! </xsd:schema>



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.