Added: db/jdo/trunk/specification/imports/jdoconfig_2_3.xsd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoconfig_2_3.xsd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoconfig_2_3.xsd (added)
+++ db/jdo/trunk/specification/imports/jdoconfig_2_3.xsd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,178 @@
+<?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.
+-->
+
+<xs:schema
+ targetNamespace="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:jdoconfig="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="2.3">
+ <xs:annotation>
+ <xs:documentation>
+ This is the XML Schema for the JDO configuration file.
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="jdoconfig">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ The root configuration element for JDO.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="persistence-manager-factory" minOccurs="1"
+ maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ Standard JDO PersistenceManagerFactory configuration properties.
+ Vendor-specific properties are set using additional
+ vendor-specific attributes and/or property elements.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name="property" minOccurs="0"
+ maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ Vendor-specific properties.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attributeGroup ref="attlist.property"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="instance-lifecycle-listener"
+ minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ javax.jdo.listener.InstanceLifecycleListener instance
+ configuration. There is one instance-lifecycle-listener
+ element per listener instance. Only one instance of the
+ listener class is supported in this configuration file.
+ If multiple instances of the same listener class is
+ required, then the API
+ PersistenceManagerFactory.addInstanceLifecycleListener(...)
+ must be used.
+
+ If attribute "classes" is missing, all persistence-capable
+ instances are observed; otherwise it is a comma- or
+ whitespace-delimited list of persistence-capable
+ classes whose instances will be observed.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attributeGroup
+ ref="attlist.instance-lifecycle-listener"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup
+ ref="attlist.persistence-manager-factory"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.jdoconfig"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.jdoconfig"/>
+
+ <xs:attributeGroup name="attlist.persistence-manager-factory">
+ <xs:annotation>
+ <xs:documentation>
+ These are attributes corresponding to the standard properties
+ defined in JDO.
+ Any other attributes present, if unrecognized by a JDO
+ implementation, may be silently ignored.
+ </xs:documentation>
+ </xs:annotation>
+
+ <!-- Corresponds to standard JDO property javax.jdo.PersistenceManagerFactoryClass. -->
+ <xs:attribute name="class" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Name.
+ The absence of this attribute implies the anonymous PMF. -->
+ <xs:attribute name="name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.PersistenceUnitName. -->
+ <xs:attribute name="persistence-unit-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Optimistic. -->
+ <xs:attribute name="optimistic" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ReadOnly. -->
+ <xs:attribute name="readonly" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.RetainValues. -->
+ <xs:attribute name="retain-values" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.RestoreValues. -->
+ <xs:attribute name="restore-values" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.IgnoreCache. -->
+ <xs:attribute name="ignore-cache" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalRead. -->
+ <xs:attribute name="nontransactional-read" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalWrite. -->
+ <xs:attribute name="nontransactional-write" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Multithreaded. -->
+ <xs:attribute name="multithreaded" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.TransactionIsolationLevel. -->
+ <xs:attribute name="transaction-isolation-level" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionDriverName. -->
+ <xs:attribute name="connection-driver-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionUserName. -->
+ <xs:attribute name="connection-user-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionPassword. -->
+ <xs:attribute name="connection-password" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionURL. -->
+ <xs:attribute name="connection-url" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactoryName. -->
+ <xs:attribute name="connection-factory-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactory2Name. -->
+ <xs:attribute name="connection-factory2-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Mapping. -->
+ <xs:attribute name="mapping" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DetachAllOnCommit. -->
+ <xs:attribute name="detach-all-on-commit" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ServerTimeZoneID. -->
+ <xs:attribute name="server-time-zone-id" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DatastoreReadTimeoutMillis. -->
+ <xs:attribute name="datastore-read-timeout-millis" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DatastoreWriteTimeoutMillis. -->
+ <xs:attribute name="datastore-write-timeout-millis" use="optional"/>
+ <!-- Any other vendor-specific attributes are allowed and passed literally
+ to the underlying implementation. -->
+ <xs:anyAttribute processContents="lax"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.property">
+ <!-- The name of the vendor-specific property. -->
+ <xs:attribute name="name" use="required"/>
+ <!-- The value of the vendor-specific property. -->
+ <xs:attribute name="value" use="optional"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.instance-lifecycle-listener">
+ <!-- The name of the listener class to instantiate. -->
+ <xs:attribute name="listener" use="required"/>
+ <!-- Comma- or whitespace-delimited list of persistence-capable classes
+ whose instances to observe. The absence of this attribute means
+ to observe all. -->
+ <xs:attribute name="classes" use="optional"/>
+ </xs:attributeGroup>
+
+</xs:schema>
+
Propchange: db/jdo/trunk/specification/imports/jdoconfig_2_3.xsd
------------------------------------------------------------------------------
svn:eol-style = LF
Added: db/jdo/trunk/specification/imports/jdoconfig_3_0.dtd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoconfig_3_0.dtd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoconfig_3_0.dtd (added)
+++ db/jdo/trunk/specification/imports/jdoconfig_3_0.dtd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,40 @@
+<!--
+<!DOCTYPE jdoconfig
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Configuration 3.0//EN"
+ "http://java.sun.com/dtd/jdoconfig_3_0.dtd">
+-->
+<!ELEMENT jdoconfig (persistence-manager-factory+)>
+
+<!ELEMENT persistence-manager-factory (property*, instance-lifecycle-listener*)>
+<!ATTLIST persistence-manager-factory class CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory persistence-unit-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory optimistic (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory readonly (true|false) CDATA 'false'>
+<!ATTLIST persistence-manager-factory retain-values (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory restore-values (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory ignore-cache (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory nontransactional-read (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory nontransactional-write (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory multithreaded (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory transaction-isolation-level CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-driver-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-user-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-password CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-url CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-factory-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory connection-factory2-name CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory mapping CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory detach-all-on-commit (true|false) CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory server-time-zone-id CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory datastore-read-timeout-millis CDATA #IMPLIED>
+<!ATTLIST persistence-manager-factory datastore-write-timeout-millis CDATA #IMPLIED>
+
+<!ELEMENT property EMPTY>
+<!ATTLIST property name CDATA #REQUIRED>
+<!ATTLIST property value CDATA #IMPLIED>
+
+<!ELEMENT instance-lifecycle-listener EMPTY>
+<!ATTLIST instance-lifecycle-listener listener CDATA #REQUIRED>
+<!ATTLIST instance-lifecycle-listener classes CDATA #IMPLIED>
+
Added: db/jdo/trunk/specification/imports/jdoconfig_3_0.xsd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoconfig_3_0.xsd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoconfig_3_0.xsd (added)
+++ db/jdo/trunk/specification/imports/jdoconfig_3_0.xsd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,161 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema
+ targetNamespace="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns:jdoconfig="http://java.sun.com/xml/ns/jdo/jdoconfig"
+ elementFormDefault="qualified"
+ attributeFormDefault="unqualified"
+ version="3.0">
+ <xs:annotation>
+ <xs:documentation>
+ This is the XML Schema for the JDO configuration file.
+ </xs:documentation>
+ </xs:annotation>
+
+ <xs:element name="jdoconfig">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ The root configuration element for JDO.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence>
+ <xs:element name="persistence-manager-factory" minOccurs="1"
+ maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ Standard JDO PersistenceManagerFactory configuration properties.
+ Vendor-specific properties are set using additional
+ vendor-specific attributes and/or property elements.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:sequence minOccurs="0" maxOccurs="1">
+ <xs:element name="property" minOccurs="0"
+ maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ Vendor-specific properties.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attributeGroup ref="attlist.property"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="instance-lifecycle-listener"
+ minOccurs="0" maxOccurs="unbounded">
+ <xs:complexType>
+ <xs:annotation>
+ <xs:documentation>
+ javax.jdo.listener.InstanceLifecycleListener instance
+ configuration. There is one instance-lifecycle-listener
+ element per listener instance. Only one instance of the
+ listener class is supported in this configuration file.
+ If multiple instances of the same listener class is
+ required, then the API
+ PersistenceManagerFactory.addInstanceLifecycleListener(...)
+ must be used.
+
+ If attribute "classes" is missing, all persistence-capable
+ instances are observed; otherwise it is a comma- or
+ whitespace-delimited list of persistence-capable
+ classes whose instances will be observed.
+ </xs:documentation>
+ </xs:annotation>
+ <xs:attributeGroup
+ ref="attlist.instance-lifecycle-listener"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup
+ ref="attlist.persistence-manager-factory"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.jdoconfig"/>
+ </xs:complexType>
+ </xs:element>
+
+ <xs:attributeGroup name="attlist.jdoconfig"/>
+
+ <xs:attributeGroup name="attlist.persistence-manager-factory">
+ <xs:annotation>
+ <xs:documentation>
+ These are attributes corresponding to the standard properties
+ defined in JDO.
+ Any other attributes present, if unrecognized by a JDO
+ implementation, may be silently ignored.
+ </xs:documentation>
+ </xs:annotation>
+
+ <!-- Corresponds to standard JDO property javax.jdo.PersistenceManagerFactoryClass. -->
+ <xs:attribute name="class" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Name.
+ The absence of this attribute implies the anonymous PMF. -->
+ <xs:attribute name="name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.PersistenceUnitName. -->
+ <xs:attribute name="persistence-unit-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Optimistic. -->
+ <xs:attribute name="optimistic" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ReadOnly. -->
+ <xs:attribute name="readonly" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.RetainValues. -->
+ <xs:attribute name="retain-values" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.RestoreValues. -->
+ <xs:attribute name="restore-values" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.IgnoreCache. -->
+ <xs:attribute name="ignore-cache" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalRead. -->
+ <xs:attribute name="nontransactional-read" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.NontransactionalWrite. -->
+ <xs:attribute name="nontransactional-write" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Multithreaded. -->
+ <xs:attribute name="multithreaded" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.TransactionIsolationLevel. -->
+ <xs:attribute name="transaction-isolation-level" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionDriverName. -->
+ <xs:attribute name="connection-driver-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionUserName. -->
+ <xs:attribute name="connection-user-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionPassword. -->
+ <xs:attribute name="connection-password" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionURL. -->
+ <xs:attribute name="connection-url" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactoryName. -->
+ <xs:attribute name="connection-factory-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ConnectionFactory2Name. -->
+ <xs:attribute name="connection-factory2-name" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.Mapping. -->
+ <xs:attribute name="mapping" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DetachAllOnCommit. -->
+ <xs:attribute name="detach-all-on-commit" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.ServerTimeZoneID. -->
+ <xs:attribute name="server-time-zone-id" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DatastoreReadTimeoutMillis. -->
+ <xs:attribute name="datastore-read-timeout-millis" use="optional"/>
+ <!-- Corresponds to standard JDO property javax.jdo.option.DatastoreWriteTimeoutMillis. -->
+ <xs:attribute name="datastore-write-timeout-millis" use="optional"/>
+ <!-- Any other vendor-specific attributes are allowed and passed literally
+ to the underlying implementation. -->
+ <xs:anyAttribute processContents="lax"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.property">
+ <!-- The name of the vendor-specific property. -->
+ <xs:attribute name="name" use="required"/>
+ <!-- The value of the vendor-specific property. -->
+ <xs:attribute name="value" use="optional"/>
+ </xs:attributeGroup>
+
+ <xs:attributeGroup name="attlist.instance-lifecycle-listener">
+ <!-- The name of the listener class to instantiate. -->
+ <xs:attribute name="listener" use="required"/>
+ <!-- Comma- or whitespace-delimited list of persistence-capable classes
+ whose instances to observe. The absence of this attribute means
+ to observe all. -->
+ <xs:attribute name="classes" use="optional"/>
+ </xs:attributeGroup>
+
+</xs:schema>
+
Propchange: db/jdo/trunk/specification/imports/jdoconfig_3_0.xsd
------------------------------------------------------------------------------
svn:eol-style = LF
Added: db/jdo/trunk/specification/imports/jdoquery_2_0.dtd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoquery_2_0.dtd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoquery_2_0.dtd (added)
+++ db/jdo/trunk/specification/imports/jdoquery_2_0.dtd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,43 @@
+<!--
+ 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.
+-->
+<!-- The DOCTYPE should be as follows for jdoquery documents.
+<!DOCTYPE jdoquery
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Query Metadata 2.0//EN"
+ "http://java.sun.com/dtd/jdoquery_2_0.dtd">
+-->
+<!ELEMENT jdoquery (extension*, (package|query)+, (extension)*)>
+
+<!ELEMENT package (extension*, (interface|class)+, (extension)*)>
+<!ATTLIST package name CDATA ''>
+
+<!ELEMENT interface (extension*, query+, extension*)>
+<!ATTLIST interface name CDATA #REQUIRED>
+
+<!ELEMENT class (extension*, query+, extension*)>
+<!ATTLIST class name CDATA #REQUIRED>
+
+<!ELEMENT query (#PCDATA|extension)*>
+<!ATTLIST query name CDATA #REQUIRED>
+<!ATTLIST query language CDATA #IMPLIED>
+<!ATTLIST query unmodifiable (true|false) 'false'>
+<!ATTLIST query unique (true|false) #IMPLIED>
+<!ATTLIST query result-class CDATA #IMPLIED>
+
+<!ELEMENT extension ANY>
+<!ATTLIST extension vendor-name CDATA #REQUIRED>
+<!ATTLIST extension key CDATA #IMPLIED>
+<!ATTLIST extension value CDATA #IMPLIED>
Added: db/jdo/trunk/specification/imports/jdoquery_2_0.xsd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoquery_2_0.xsd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoquery_2_0.xsd (added)
+++ db/jdo/trunk/specification/imports/jdoquery_2_0.xsd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,124 @@
+<?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.
+-->
+<xs:schema targetNamespace="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ version="2.0">
+ <xs:element name="jdoquery">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="package"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="package">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="interface"/>
+ <xs:element ref="class"/>
+ </xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.package"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.package">
+ <xs:attribute name="name" default=""/>
+ </xs:attributeGroup>
+ <xs:element name="interface">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ <xs:element maxOccurs="unbounded" ref="query"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.interface"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.interface">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="class">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ <xs:element maxOccurs="unbounded" ref="query"/>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.class"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.class">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="query">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.query"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.query">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="language"/>
+ <xs:attribute name="unique">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="unmodifiable" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="result-class"/>
+ </xs:attributeGroup>
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="any">
+ <xs:attributeGroup ref="attlist.extension"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.extension">
+ <xs:attribute name="vendor-name" use="required"/>
+ <xs:attribute name="key"/>
+ <xs:attribute name="value"/>
+ </xs:attributeGroup>
+ <xs:complexType name="any" mixed="true">
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Propchange: db/jdo/trunk/specification/imports/jdoquery_2_0.xsd
------------------------------------------------------------------------------
svn:eol-style = LF
Added: db/jdo/trunk/specification/imports/jdoquery_2_1.xsd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoquery_2_1.xsd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoquery_2_1.xsd (added)
+++ db/jdo/trunk/specification/imports/jdoquery_2_1.xsd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,116 @@
+<?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.
+-->
+<xs:schema targetNamespace="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ version="2.1">
+ <xs:element name="jdoquery">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="package"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="package">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="interface"/>
+ <xs:element ref="class"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.package"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.package">
+ <xs:attribute name="name" default=""/>
+ </xs:attributeGroup>
+ <xs:element name="interface">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.interface"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.interface">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="class">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.class"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.class">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="query">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.query"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.query">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="language"/>
+ <xs:attribute name="unmodifiable" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="unique">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="result-class"/>
+ </xs:attributeGroup>
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="any">
+ <xs:attributeGroup ref="attlist.extension"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.extension">
+ <xs:attribute name="vendor-name" use="required"/>
+ <xs:attribute name="key"/>
+ <xs:attribute name="value"/>
+ </xs:attributeGroup>
+ <xs:complexType name="any" mixed="true">
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Propchange: db/jdo/trunk/specification/imports/jdoquery_2_1.xsd
------------------------------------------------------------------------------
svn:eol-style = LF
Added: db/jdo/trunk/specification/imports/jdoquery_2_2.dtd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoquery_2_2.dtd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoquery_2_2.dtd (added)
+++ db/jdo/trunk/specification/imports/jdoquery_2_2.dtd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,43 @@
+<!--
+ 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.
+-->
+<!-- The DOCTYPE should be as follows for jdoquery documents.
+<!DOCTYPE jdoquery
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Query Metadata 2.2//EN"
+ "http://java.sun.com/dtd/jdoquery_2_2.dtd">
+-->
+<!ELEMENT jdoquery (extension*, (package|query)+, (extension)*)>
+
+<!ELEMENT package (extension*, (interface|class)+, (extension)*)>
+<!ATTLIST package name CDATA ''>
+
+<!ELEMENT interface (extension*, query+, extension*)>
+<!ATTLIST interface name CDATA #REQUIRED>
+
+<!ELEMENT class (extension*, query+, extension*)>
+<!ATTLIST class name CDATA #REQUIRED>
+
+<!ELEMENT query (#PCDATA|extension)*>
+<!ATTLIST query name CDATA #REQUIRED>
+<!ATTLIST query language CDATA #IMPLIED>
+<!ATTLIST query unmodifiable (true|false) 'false'>
+<!ATTLIST query unique (true|false) #IMPLIED>
+<!ATTLIST query result-class CDATA #IMPLIED>
+
+<!ELEMENT extension ANY>
+<!ATTLIST extension vendor-name CDATA #REQUIRED>
+<!ATTLIST extension key CDATA #IMPLIED>
+<!ATTLIST extension value CDATA #IMPLIED>
Added: db/jdo/trunk/specification/imports/jdoquery_2_2.xsd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoquery_2_2.xsd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoquery_2_2.xsd (added)
+++ db/jdo/trunk/specification/imports/jdoquery_2_2.xsd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,116 @@
+<?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.
+-->
+<xs:schema targetNamespace="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ version="2.2">
+ <xs:element name="jdoquery">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="package"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="package">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="interface"/>
+ <xs:element ref="class"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.package"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.package">
+ <xs:attribute name="name" default=""/>
+ </xs:attributeGroup>
+ <xs:element name="interface">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.interface"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.interface">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="class">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.class"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.class">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="query">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.query"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.query">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="language"/>
+ <xs:attribute name="unmodifiable" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="unique">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="result-class"/>
+ </xs:attributeGroup>
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="any">
+ <xs:attributeGroup ref="attlist.extension"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.extension">
+ <xs:attribute name="vendor-name" use="required"/>
+ <xs:attribute name="key"/>
+ <xs:attribute name="value"/>
+ </xs:attributeGroup>
+ <xs:complexType name="any" mixed="true">
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Propchange: db/jdo/trunk/specification/imports/jdoquery_2_2.xsd
------------------------------------------------------------------------------
svn:eol-style = LF
Added: db/jdo/trunk/specification/imports/jdoquery_3_0.dtd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoquery_3_0.dtd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoquery_3_0.dtd (added)
+++ db/jdo/trunk/specification/imports/jdoquery_3_0.dtd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,29 @@
+<!-- The DOCTYPE should be as follows for jdoquery documents.
+<!DOCTYPE jdoquery
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Query Metadata 3.0//EN"
+ "http://java.sun.com/dtd/jdoquery_3_0.dtd">
+-->
+<!ELEMENT jdoquery (extension*, (package|query)+, (extension)*)>
+
+<!ELEMENT package (extension*, (interface|class)+, (extension)*)>
+<!ATTLIST package name CDATA ''>
+
+<!ELEMENT interface (extension*, query+, extension*)>
+<!ATTLIST interface name CDATA #REQUIRED>
+
+<!ELEMENT class (extension*, query+, extension*)>
+<!ATTLIST class name CDATA #REQUIRED>
+
+<!ELEMENT query (#PCDATA|extension)*>
+<!ATTLIST query name CDATA #REQUIRED>
+<!ATTLIST query language CDATA #IMPLIED>
+<!ATTLIST query unmodifiable (true|false) 'false'>
+<!ATTLIST query unique (true|false) #IMPLIED>
+<!ATTLIST query result-class CDATA #IMPLIED>
+<!ATTLIST query datastore-read-timeout-millis CDATA #IMPLIED>
+<!ATTLIST query datastore-write-timeout-millis CDATA #IMPLIED>
+
+<!ELEMENT extension ANY>
+<!ATTLIST extension vendor-name CDATA #REQUIRED>
+<!ATTLIST extension key CDATA #IMPLIED>
+<!ATTLIST extension value CDATA #IMPLIED>
Added: db/jdo/trunk/specification/imports/jdoquery_3_0.xsd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/jdoquery_3_0.xsd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/jdoquery_3_0.xsd (added)
+++ db/jdo/trunk/specification/imports/jdoquery_3_0.xsd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,102 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema targetNamespace="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns="http://java.sun.com/xml/ns/jdo/jdoquery"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ version="3.0">
+ <xs:element name="jdoquery">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="package"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="package">
+ <xs:complexType>
+ <xs:choice maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="interface"/>
+ <xs:element ref="class"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.package"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.package">
+ <xs:attribute name="name" default=""/>
+ </xs:attributeGroup>
+ <xs:element name="interface">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.interface"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.interface">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="class">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="extension"/>
+ <xs:element ref="query"/>
+ </xs:choice>
+ <xs:attributeGroup ref="attlist.class"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.class">
+ <xs:attribute name="name" use="required"/>
+ </xs:attributeGroup>
+ <xs:element name="query">
+ <xs:complexType mixed="true">
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded" ref="extension"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="attlist.query"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.query">
+ <xs:attribute name="name" use="required"/>
+ <xs:attribute name="language"/>
+ <xs:attribute name="unmodifiable" default="false">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="unique">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="true"/>
+ <xs:enumeration value="false"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="result-class"/>
+ <xs:attribute name="datastore-read-timeout-millis"/>
+ <xs:attribute name="datastore-write-timeout-millis"/>
+ </xs:attributeGroup>
+ <xs:element name="extension">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="any">
+ <xs:attributeGroup ref="attlist.extension"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="attlist.extension">
+ <xs:attribute name="vendor-name" use="required"/>
+ <xs:attribute name="key"/>
+ <xs:attribute name="value"/>
+ </xs:attributeGroup>
+ <xs:complexType name="any" mixed="true">
+ <xs:sequence>
+ <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>
Propchange: db/jdo/trunk/specification/imports/jdoquery_3_0.xsd
------------------------------------------------------------------------------
svn:eol-style = LF
Added: db/jdo/trunk/specification/imports/orm_2_0.dtd
URL: http://svn.apache.org/viewvc/db/jdo/trunk/specification/imports/orm_2_0.dtd?rev=1293075&view=auto
==============================================================================
--- db/jdo/trunk/specification/imports/orm_2_0.dtd (added)
+++ db/jdo/trunk/specification/imports/orm_2_0.dtd Fri Feb 24 04:25:57 2012
@@ -0,0 +1,182 @@
+<!--
+ 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.
+-->
+<!-- The DOCTYPE should be as follows for metadata documents.
+<!DOCTYPE orm
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Java Data Objects Mapping Metadata 2.0//EN"
+ "http://java.sun.com/dtd/orm_2_0.dtd">
+-->
+<!ELEMENT orm (extension*, (package|query)+, extension*)>
+<!ATTLIST orm catalog CDATA #IMPLIED>
+<!ATTLIST orm schema CDATA #IMPLIED>
+
+<!ELEMENT package (extension*, (interface|class|sequence)+, extension*)>
+<!ATTLIST package name CDATA ''>
+<!ATTLIST package catalog CDATA #IMPLIED>
+<!ATTLIST package schema CDATA #IMPLIED>
+
+<!ELEMENT interface (extension*, datastore-identity?, primary-key?, inheritance?, version?, join*, foreign-key*, index*, unique*, property*, query*, extension*)>
+<!ATTLIST interface name CDATA #REQUIRED>
+<!ATTLIST interface table CDATA #IMPLIED>
+<!ATTLIST interface catalog CDATA #IMPLIED>
+<!ATTLIST interface schema CDATA #IMPLIED>
+
+<!ELEMENT property (extension*, join?, embedded?, element?, key?, value?, order?, column*, foreign-key?, index?, unique?, extension*)>
+<!ATTLIST property name CDATA #REQUIRED>
+<!ATTLIST property value-strategy CDATA #IMPLIED>
+<!ATTLIST property sequence CDATA #IMPLIED>
+<!ATTLIST property table CDATA #IMPLIED>
+<!ATTLIST property column CDATA #IMPLIED>
+<!ATTLIST property delete-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST property indexed (true|false|unique) #IMPLIED>
+<!ATTLIST property unique (true|false) #IMPLIED>
+<!ATTLIST property mapped-by CDATA #IMPLIED>
+
+<!ELEMENT class (extension*, datastore-identity?, primary-key?, inheritance?, version?, join*, foreign-key*, index*, unique*, column*, field*, property*, query*, extension*)>
+<!ATTLIST class name CDATA #REQUIRED>
+<!ATTLIST class table CDATA #IMPLIED>
+<!ATTLIST class catalog CDATA #IMPLIED>
+<!ATTLIST class schema CDATA #IMPLIED>
+
+<!ELEMENT primary-key (extension*, column*, extension*)>
+<!ATTLIST primary-key name CDATA #IMPLIED>
+<!ATTLIST primary-key column CDATA #IMPLIED>
+
+<!ELEMENT join (extension*, primary-key?, column*, foreign-key?, index?, unique?, extension*)>
+<!ATTLIST join table CDATA #IMPLIED>
+<!ATTLIST join column CDATA #IMPLIED>
+<!ATTLIST join outer (true|false) 'false'>
+<!ATTLIST join delete-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST join indexed (true|false|unique) #IMPLIED>
+<!ATTLIST join unique (true|false) #IMPLIED>
+
+<!ELEMENT version (extension*, column*, index?, extension*)>
+<!ATTLIST version strategy CDATA #IMPLIED>
+<!ATTLIST version column CDATA #IMPLIED>
+<!ATTLIST version indexed (true|false|unique) #IMPLIED>
+
+<!ELEMENT datastore-identity (extension*, column*, extension*)>
+<!ATTLIST datastore-identity column CDATA #IMPLIED>
+<!ATTLIST datastore-identity strategy CDATA 'native'>
+<!ATTLIST datastore-identity sequence CDATA #IMPLIED>
+
+<!ELEMENT implements (extension*, property*, extension*)>
+<!ATTLIST implements name CDATA #REQUIRED>
+
+<!ELEMENT inheritance (extension*, join?, discriminator?, extension*)>
+<!ATTLIST inheritance strategy CDATA #IMPLIED>
+
+<!ELEMENT discriminator (extension*, column*, index?, extension*)>
+<!ATTLIST discriminator column CDATA #IMPLIED>
+<!ATTLIST discriminator value CDATA #IMPLIED>
+<!ATTLIST discriminator strategy CDATA #IMPLIED>
+<!ATTLIST discriminator indexed (true|false|unique) #IMPLIED>
+
+<!ELEMENT column (extension*)>
+<!ATTLIST column name CDATA #IMPLIED>
+<!ATTLIST column target CDATA #IMPLIED>
+<!ATTLIST column target-field CDATA #IMPLIED>
+<!ATTLIST column jdbc-type CDATA #IMPLIED>
+<!ATTLIST column sql-type CDATA #IMPLIED>
+<!ATTLIST column length CDATA #IMPLIED>
+<!ATTLIST column scale CDATA #IMPLIED>
+<!ATTLIST column allows-null (true|false) #IMPLIED>
+<!ATTLIST column default-value CDATA #IMPLIED>
+<!ATTLIST column insert-value CDATA #IMPLIED>
+
+<!ELEMENT field (extension*, join?, embedded?, element?, key?, value?, order?, column*, foreign-key?, index?, unique?, extension*)>
+<!ATTLIST field name CDATA #REQUIRED>
+<!ATTLIST field table CDATA #IMPLIED>
+<!ATTLIST field column CDATA #IMPLIED>
+<!ATTLIST field value-strategy CDATA #IMPLIED>
+<!ATTLIST field delete-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST field indexed (true|false|unique) #IMPLIED>
+<!ATTLIST field unique (true|false) #IMPLIED>
+<!ATTLIST field sequence CDATA #IMPLIED>
+<!ATTLIST field mapped-by CDATA #IMPLIED>
+
+<!ELEMENT foreign-key (extension*, (column* | field* | property*), extension*)>
+<!ATTLIST foreign-key table CDATA #IMPLIED>
+<!ATTLIST foreign-key deferred (true|false) #IMPLIED>
+<!ATTLIST foreign-key delete-action (restrict|cascade|null|default|none) 'restrict'>
+<!ATTLIST foreign-key update-action (restrict|cascade|null|default|none) 'restrict'>
+<!ATTLIST foreign-key unique (true|false) #IMPLIED>
+<!ATTLIST foreign-key name CDATA #IMPLIED>
+
+<!ELEMENT key (extension*, embedded?, column*, foreign-key?, index?, unique?, extension*)>
+<!ATTLIST key column CDATA #IMPLIED>
+<!ATTLIST key table CDATA #IMPLIED>
+<!ATTLIST key delete-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST key update-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST key indexed (true|false|unique) #IMPLIED>
+<!ATTLIST key unique (true|false) #IMPLIED>
+<!ATTLIST key mapped-by CDATA #IMPLIED>
+
+<!ELEMENT value (extension*, embedded?, column*, foreign-key?, index?, unique?, extension*)>
+<!ATTLIST value column CDATA #IMPLIED>
+<!ATTLIST value table CDATA #IMPLIED>
+<!ATTLIST value delete-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST value update-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST value indexed (true|false|unique) #IMPLIED>
+<!ATTLIST value unique (true|false) #IMPLIED>
+<!ATTLIST value mapped-by CDATA #IMPLIED>
+
+<!ELEMENT element (extension*, embedded?, column*, foreign-key?, index?, unique?, extension*)>
+<!ATTLIST element column CDATA #IMPLIED>
+<!ATTLIST element table CDATA #IMPLIED>
+<!ATTLIST element delete-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST element update-action (restrict|cascade|null|default|none) #IMPLIED>
+<!ATTLIST element indexed (true|false|unique) #IMPLIED>
+<!ATTLIST element unique (true|false) #IMPLIED>
+<!ATTLIST element mapped-by CDATA #IMPLIED>
+
+<!ELEMENT order (extension*, column*, index?, extension*)>
+<!ATTLIST order column CDATA #IMPLIED>
+<!ATTLIST order mapped-by CDATA #IMPLIED>
+
+<!ELEMENT embedded (extension*, (field|property)*, extension*)>
+<!ATTLIST embedded owner-field CDATA #IMPLIED>
+<!ATTLIST embedded null-indicator-column CDATA #IMPLIED>
+<!ATTLIST embedded null-indicator-value CDATA #IMPLIED>
+
+<!ELEMENT sequence (extension*)>
+<!ATTLIST sequence name CDATA #REQUIRED>
+<!ATTLIST sequence datastore-sequence CDATA #IMPLIED>
+<!ATTLIST sequence factory-class CDATA #IMPLIED>
+<!ATTLIST sequence strategy (nontransactional|contiguous|noncontiguous) #REQUIRED>
+
+<!ELEMENT index (extension*, (column* | field* | property*), extension*)>
+<!ATTLIST index name CDATA #IMPLIED>
+<!ATTLIST index table CDATA #IMPLIED>
+<!ATTLIST index unique (true|false) 'false'>
+
+<!ELEMENT query (#PCDATA|extension)*>
+<!ATTLIST query name CDATA #REQUIRED>
+<!ATTLIST query language CDATA #IMPLIED>
+<!ATTLIST query unmodifiable (true|false) 'false'>
+<!ATTLIST query unique (true|false) #IMPLIED>
+<!ATTLIST query result-class CDATA #IMPLIED>
+
+<!ELEMENT unique (extension*, (column* | field* | property*), extension*)>
+<!ATTLIST unique name CDATA #IMPLIED>
+<!ATTLIST unique table CDATA #IMPLIED>
+<!ATTLIST unique deferred (true|false) 'false'>
+
+<!ELEMENT extension ANY>
+<!ATTLIST extension vendor-name CDATA #REQUIRED>
+<!ATTLIST extension key CDATA #IMPLIED>
+<!ATTLIST extension value CDATA #IMPLIED>
+
|