You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by ce...@apache.org on 2005/10/27 08:22:13 UTC

svn commit: r328804 [1/2] - in /xmlbeans/trunk/test: cases/xbean/misc/jira/ src/misc/common/ src/misc/detailed/ src/xmlobject/extensions/interfaceFeature/averageCase/checkin/ src/xmlobject/extensions/interfaceFeature/averageCase/existing/

Author: cezar
Date: Wed Oct 26 23:22:06 2005
New Revision: 328804

URL: http://svn.apache.org/viewcvs?rev=328804&view=rev
Log:
Contributed by Rajiv Balachandran. New tests for JIRA fixes and path changes to existing JIRA tests

Added:
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_175.xsd
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_datentypen_V1.30.xsd_
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_header_V1.30.xsd_
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_root_V1.30.xsd_
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_keytabs_V1.30.xsd_
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_vdx_data_V1.04.xsd_
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_vdx_header_V1.04.xsd_
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_vdx_root_V1.04.xsd_
    xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_208.xsd
    xmlbeans/trunk/test/src/misc/detailed/JiraRegression151_200Test.java
    xmlbeans/trunk/test/src/misc/detailed/JiraRegression201_250Test.java
Modified:
    xmlbeans/trunk/test/src/misc/common/JiraTestBase.java
    xmlbeans/trunk/test/src/misc/detailed/JiraRegression1_50Test.java
    xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/averageCase/checkin/AverageTest.java
    xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/averageCase/existing/FooHandler.java
    xmlbeans/trunk/test/src/xmlobject/extensions/interfaceFeature/averageCase/existing/IFoo.java

Added: xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_175.xsd
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_175.xsd?rev=328804&view=auto
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_175.xsd (added)
+++ xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_175.xsd Wed Oct 26 23:22:06 2005
@@ -0,0 +1,31 @@
+<?xml version = "1.0" encoding = "UTF-8"?>
+<!--
+/*   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.
+ */
+-->
+<schema xmlns = "http://www.w3.org/2001/XMLSchema"
+	 targetNamespace = "http://space.eads.net/scoexml/test"
+	 xmlns:test = "http://space.eads.net/scoexml/test"
+	 xmlns:xsd = "http://www.w3.org/2001/XMLSchema"
+	 elementFormDefault = "qualified"
+	 attributeFormDefault = "unqualified">
+	<element name = "TestExponent">
+		<complexType>
+			<attribute name = "float" type = "float"/>
+			<attribute name = "double" type = "double"/>
+			<attribute name = "decimal" type = "decimal"/>
+		</complexType>
+	</element>
+</schema>
\ No newline at end of file

Added: xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_datentypen_V1.30.xsd_
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_datentypen_V1.30.xsd_?rev=328804&view=auto
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_datentypen_V1.30.xsd_ (added)
+++ xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_datentypen_V1.30.xsd_ Wed Oct 26 23:22:06 2005
@@ -0,0 +1,615 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+/*   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.
+ */
+-->
+<!-- =======================================================================
+ Typdefinitionen für Schnittstellen,
+ Namensraum ist:  keins
+=======================================================================-->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
+	<!--
+	============================================================
+	Dokument/Instanz Identifikation
+	ID-Elemente identifizieren eindeutig Objekte. Werte zur Identifizierung werden in
+	Attribute EX, RT und RTV eingetragen:
+	RT-Attribut (Root) enthält eine eindeutige OID des Objekts (Person/Organisation oder
+	Schlüsseltabelle ...)
+	EX-Attribut (Extension) enthält die Erweiterung zu OID z.B. fortlaufende Nummer, 
+	oder GUID bei XML-Dokumenten oder kodierten Wert aus der Schlüsseltabelle.
+	RTV-Attribut wird bei Referenzierung auf Schlüsseltabellen verwendet. Hier wird
+	Schlüsseltabellenversion eingegeben.
+	============================================================-->
+	<xs:element name="id" type="id_typ">
+		<xs:annotation>
+			<xs:documentation>enthält eindeutige Instanz-ID</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="id_typ">
+		<xs:attribute name="EX" type="xs:string" use="optional"/>
+		<xs:attribute name="RT" type="xs:string" use="required"/>
+		<xs:attribute name="RTV" type="xs:string" use="optional"/>
+	</xs:complexType>
+	<xs:complexType name="doc_id_typ">
+		<xs:annotation>
+			<xs:documentation>ist dem id_typ identisch</xs:documentation>
+		</xs:annotation>
+		<xs:complexContent>
+			<xs:extension base="id_typ"/>
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:element name="set_id" type="id_typ">
+		<xs:annotation>
+			<xs:documentation>enthält eindeutige Instanz-ID, die über alle Versionen und zusammgengehörende Dokumente konstant bleibt</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<!--
+	============================================================
+	Dokumentenverwaltung
+	Die Zuordnung des Dokuments zu einem bestimmten Dokumenttyp wird über
+	das Element <document_type_cd> erreicht. Die Dokumente werden mit
+	Hilfe der Elemente <id>, <set_id>, <version_nbr> und <document_relationship>
+	verwaltet. Mit <document_relationship> wird eine verkettete Liste von Dokumenten 
+	abgebildet, wie ein Pointer der auf den Vorgänger oder anderes Dokument zeigt.
+	============================================================
+	-->
+	<!-- ************************ version_nbr_typ ********************************* -->
+	<xs:element name="version_nbr" type="version_nbr_typ">
+		<xs:annotation>
+			<xs:documentation>Versionnummer des XML-Dokuments</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="version_nbr_typ">
+		<xs:attribute name="V" type="xs:nonNegativeInteger" use="required"/>
+	</xs:complexType>
+	<!-- ************************ document_relationship_typ ********************************* -->
+	<xs:element name="document_relationship" type="document_relationship_typ">
+		<xs:annotation>
+			<xs:documentation>Beziehung zu anderen Dokumenten ("Anhang", "Ersatz")</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="document_relationship_typ">
+		<xs:sequence>
+			<xs:element name="document_relationship.type_cd" type="document_relationship.type_cd_typ">
+				<xs:annotation>
+					<xs:documentation>Art der Dokumentbeziehung ("Anhang", "Ersatz")</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element ref="related_document"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="document_relationship.type_cd_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.101"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ************************ related_document_typ ********************************* -->
+	<xs:element name="related_document" type="related_document_typ">
+		<xs:annotation>
+			<xs:documentation>Verweis auf das Original/Anhang-Dokument</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="related_document_typ">
+		<xs:sequence>
+			<xs:element ref="id"/>
+			<xs:element ref="set_id" minOccurs="0"/>
+			<xs:element ref="version_nbr" minOccurs="0"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<!-- ************************ document_type_cd_typ ********************************* -->
+	<xs:element name="document_type_cd" type="document_type_cd_typ">
+		<xs:annotation>
+			<xs:documentation>Dokumenttype Code</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="document_type_cd_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.100"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<!--
+	============================================================
+	Zeitangaben:
+	service_tmr_typ: Gültigkeitszeitram der Daten (XML-Dokuments).
+ 	origination_dttm_typ: Erstellungsdatum des XML-Dokuments
+	============================================================
+	-->
+	<!-- ************************ service_tmr_typ ********************************* -->
+	<xs:element name="service_tmr" type="service_tmr_typ">
+		<xs:annotation>
+			<xs:documentation>Gültigkeitszeitraum (date..date)</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="service_tmr_typ">
+		<xs:complexContent>
+			<xs:extension base="v_zeitraum_typ"/>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ************************ origination_dttm_typ ********************************* -->
+	<xs:element name="origination_dttm" type="origination_dttm_typ">
+		<xs:annotation>
+			<xs:documentation>Erstellungsdatum</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="origination_dttm_typ">
+		<xs:complexContent>
+			<xs:extension base="v_date_typ"/>
+		</xs:complexContent>
+	</xs:complexType>
+	<!--
+	============================================================
+	Person/Organisation- Angaben:  
+	intended_recipient_typ: beabsichtigter Empfänger/Zielgruppe.
+	originator_typ: Ersteller/Urheber (Person oder Organisationi).
+	provider_typ: Sender/Lieferer (Person oder Organisation).
+	person_typ: Person
+	person_name_typ: Name der Person
+	organization_typ: Organisation
+	addr_typ: Adersse
+	============================================================
+	-->
+	<!-- ************************ intended_recipient_typ ********************************* -->
+	<xs:element name="intended_recipient" type="intended_recipient_typ">
+		<xs:annotation>
+			<xs:documentation>Empfänger / Zielgruppe der Daten</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="intended_recipient_typ">
+		<xs:sequence>
+			<xs:element name="intended_recipient.type_cd" type="intended_recipient.type_cd_typ" minOccurs="0"/>
+			<xs:element ref="function_cd" minOccurs="0"/>
+			<xs:element ref="person" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="organization" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="intended_recipient.type_cd_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.102"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ************************ originator_typ ********************************** -->
+	<xs:element name="originator" type="originator_typ">
+		<xs:annotation>
+			<xs:documentation>Ersteller, Urheber des Dokuments / der Daten</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="originator_typ">
+		<xs:sequence>
+			<xs:element name="originator.type_cd" type="originator.type_cd_typ" minOccurs="0"/>
+			<xs:element ref="function_cd" minOccurs="0"/>
+			<xs:element ref="participation_tmr" minOccurs="0"/>
+			<xs:element ref="person" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="organization" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="originator.type_cd_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.103"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ************************ provider_typ ********************************** -->
+	<xs:element name="provider" type="provider_typ">
+		<xs:annotation>
+			<xs:documentation>Sender, Lieferant des Dokuments (kann gleichzeitig der Urheber sein)</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="provider_typ">
+		<xs:sequence>
+			<xs:element name="provider.type_cd" type="provider.type_cd_typ" minOccurs="0"/>
+			<xs:element ref="function_cd" minOccurs="0"/>
+			<xs:element ref="participation_tmr" minOccurs="0"/>
+			<xs:element ref="person" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="organization" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="provider.type_cd_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.104"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:element name="function_cd" type="function_cd_typ">
+		<xs:annotation>
+			<xs:documentation>Funktion/Rolle der Person/Organisation</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="function_cd_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.105"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:element name="participation_tmr" type="v_zeitraum_typ">
+		<xs:annotation>
+			<xs:documentation>Zeitraum/Zeitpunkt der Teilnahme</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<!-- ************************ person_typ ********************************** -->
+	<xs:element name="person" type="person_typ">
+		<xs:annotation>
+			<xs:documentation>Person-Daten</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:element name="group" type="group_typ">
+		<xs:annotation>
+			<xs:documentation>zugehörende Gruppe, Ausprägung (z.B. Augenarzt)</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="group_typ">
+		<xs:complexContent>
+			<xs:extension base="v_s_string_typ">
+				<xs:sequence>
+					<xs:element ref="group.type_cd"/>
+				</xs:sequence>
+			</xs:extension>
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:element name="group.type_cd" type="v_s_string_typ">
+		<xs:annotation>
+			<xs:documentation>Gruppebezeichnung (z.B. Facharztagruppe)</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="person_typ">
+		<xs:sequence>
+			<xs:element ref="id" minOccurs="0"/>
+			<xs:element ref="person_name" minOccurs="0"/>
+			<xs:element name="organization.nm" type="v_string_typ" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="addr" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="telecom" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:element name="telecom" type="v_string_typ">
+		<xs:annotation>
+			<xs:documentation>Telekomunnikation (tel,mail,fax,...)</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<!-- ************************ person_name_typ ********************************** -->
+	<xs:element name="person_name" type="person_name_typ">
+		<xs:annotation>
+			<xs:documentation>Name der Person</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="person_name_typ">
+		<xs:sequence>
+			<xs:element name="nm" type="person_name_nm_typ"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="person_name_nm_typ">
+		<xs:choice minOccurs="0" maxOccurs="unbounded">
+			<xs:element name="GIV" type="pnxp_string_typ">
+				<xs:annotation>
+					<xs:documentation>Vorname</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element name="MID" type="pnxp_string_typ">
+				<xs:annotation>
+					<xs:documentation>Zusatzname</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element name="FAM" type="pnxp_string_typ">
+				<xs:annotation>
+					<xs:documentation>Nachname</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element name="PFX" type="pnxp_string_typ">
+				<xs:annotation>
+					<xs:documentation>Titel (Dr.)</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element name="SFX" type="pnxp_string_typ">
+				<xs:annotation>
+					<xs:documentation>Namenzusatz</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element name="DEL" type="pnxp_string_typ">
+				<xs:annotation>
+					<xs:documentation>Trennzeichen</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+		</xs:choice>
+	</xs:complexType>
+	<!-- ************************ organization_typ ********************************** -->
+	<xs:element name="organization" type="organization_typ">
+		<xs:annotation>
+			<xs:documentation>Organisations-Daten</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="organization_typ">
+		<xs:sequence>
+			<xs:element ref="id" minOccurs="0"/>
+			<xs:element name="organization.nm" type="v_string_typ" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="addr" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="telecom" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<!-- ************************ addr_typ ********************************** -->
+	<xs:element name="addr" type="addr_typ">
+		<xs:annotation>
+			<xs:documentation>Adresse</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="addr_typ">
+		<xs:choice minOccurs="0" maxOccurs="unbounded">
+			<xs:element name="STR" type="v_string_typ"/>
+			<xs:element name="HNR" type="v_string_typ"/>
+			<xs:element name="POB" type="v_string_typ"/>
+			<xs:element name="ZIP" type="v_string_typ"/>
+			<xs:element name="CTY" type="v_string_typ"/>
+			<xs:element name="STA" type="v_string_typ"/>
+			<xs:element name="CNT" type="v_string_typ"/>
+			<xs:element name="ADL" type="v_string_typ"/>
+		</xs:choice>
+	</xs:complexType>
+	<!--
+	============================================================
+	CDA-Hilfstypen (patient_typ)
+	============================================================
+	-->
+	<xs:element name="patient" type="patient_typ">
+		<xs:annotation>
+			<xs:appinfo>Patient-Informationen</xs:appinfo>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="patient_typ">
+		<xs:sequence>
+			<xs:element name="patient.type_cd" type="v_s_string_typ" minOccurs="0"/>
+			<xs:element ref="person"/>
+			<xs:element name="birth_dttm" type="v_date_typ" minOccurs="0"/>
+			<xs:element name="administrative_gender_cd" type="v_s_string_typ" minOccurs="0"/>
+			<xs:element ref="local_header" minOccurs="0"/>
+		</xs:sequence>
+	</xs:complexType>
+	<!--
+	============================================================
+	local_header, 	Einzige Stelle, wo eigendefinierte Elemente  und SCIPHOX SSUS
+	verwendet werden können.
+	============================================================
+	-->
+	<xs:element name="local_header" type="local_header-cont.model">
+		<xs:annotation>
+			<xs:documentation>Element für weitere, datenartspezifische, Metainformationen</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="local_header-cont.model" mixed="true">
+		<xs:choice minOccurs="0" maxOccurs="unbounded">
+			<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:choice>
+		<xs:attribute name="ignore" type="ignore_typ" default="markup"/>
+		<xs:attribute name="descriptor" type="xs:string"/>
+		<xs:attribute name="render" type="xs:string"/>
+	</xs:complexType>
+	<!--
+	============================================================
+	Komplexe Hilfstypen:  
+	v_string_typ: enthält nur den V-Attribut für einfache Daten-Angaben
+	v_s_string_typ: wird für kodierte Wertepaare mit optionaler Schlüsseltabelle verwendet
+	v_date_typ: enthält nur den V-Attribut für einfache Datums-Angaben
+	v_zeitraum_typ: enthält nur den V-Attribut für Zeitraum-Angaben
+	============================================================
+	-->
+	<!-- ************************ v_string_typ ********************************** -->
+	<xs:complexType name="v_string_typ">
+		<xs:attribute name="V" type="xs:string" use="required"/>
+	</xs:complexType>
+	<!-- ************************ v_s_string_typ ********************************** -->
+	<xs:element name="TRANSLTN" type="transltn_typ">
+		<xs:annotation>
+			<xs:documentation>interne/alternative Kodes und Schlüsseltabellen</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="transltn_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ"/>
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:complexType name="v_s_string_typ">
+		<xs:attribute name="V" type="xs:string" use="required"/>
+		<xs:attribute name="DN" type="xs:string" use="optional"/>
+		<xs:attribute name="S" type="xs:string" use="optional"/>
+		<xs:attribute name="SN" type="xs:string" use="optional"/>
+		<xs:attribute name="SV" type="xs:string" use="optional"/>
+	</xs:complexType>
+	<!-- ************************ v_date_typ ********************************** -->
+	<xs:complexType name="v_date_typ">
+		<xs:attribute name="V" type="xs:date" use="required"/>
+	</xs:complexType>
+	<!-- ************************ v_zeitraum_typ ********************************** -->
+	<xs:complexType name="v_zeitraum_typ">
+		<xs:annotation>
+			<xs:documentation>Zeitraum: datum..datum</xs:documentation>
+		</xs:annotation>
+		<xs:attribute name="V" type="zeitraum_typ" use="required"/>
+	</xs:complexType>
+	<!-- ************************ pnxp_string_typ ********************************** -->
+	<xs:complexType name="pnxp_string_typ">
+		<xs:attribute name="V" type="xs:string" use="required"/>
+		<xs:attribute name="QUAL" type="xs:NMTOKENS" use="optional"/>
+	</xs:complexType>
+	<!-- ======================================================================= -->
+	<!-- Eigendefinierten Datentypen -->
+	<!-- ======================================================================= -->
+	<!--
+	============================================================
+	Schnittstelle-Angaben: 
+	interface_typ: enthält Informationen über die Schnittstelle selbst.
+	interface_nm_typ: Bezeichnung der Schnittstelle kann auch als kodierter Wert angegeben werden.
+	interface_version_typ: Die Version der Schnittstelle
+	description_typ: Kurzbeschreibung der Schnittstelle.
+	============================================================-->
+	<!-- ************************ interface_typ ********************************* -->
+	<xs:element name="interface" type="interface_typ">
+		<xs:annotation>
+			<xs:documentation>enthält Informationen über die Schnittstelle selbst</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="interface_typ">
+		<xs:sequence>
+			<xs:element name="id" type="interface_id_typ"/>
+			<xs:element name="interface.nm" type="interface_nm_typ"/>
+			<xs:element name="version" type="interface_version_typ"/>
+			<xs:element ref="originator" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element name="description" type="description_typ" minOccurs="0"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="interface_id_typ">
+		<xs:complexContent>
+			<xs:restriction base="id_typ">
+				<xs:attribute name="RT" type="xs:string" use="required" fixed="1.2.276.0.76.5.109"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ************************ interface_nm_typ ********************************* -->
+	<xs:complexType name="interface_nm_typ">
+		<xs:annotation>
+			<xs:documentation>Bezeichnung der Schnittstelle</xs:documentation>
+		</xs:annotation>
+		<xs:complexContent>
+			<xs:extension base="v_string_typ"/>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ************************ interface_version_typ ********************************* -->
+	<xs:complexType name="interface_version_typ">
+		<xs:annotation>
+			<xs:documentation>Version der Schnittstellenbeschreibung</xs:documentation>
+		</xs:annotation>
+		<xs:complexContent>
+			<xs:extension base="v_string_typ"/>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ************************ description_typ ********************************* -->
+	<xs:complexType name="description_typ">
+		<xs:annotation>
+			<xs:documentation>Kurzbeschreibung oder Link auf die WebSite mit der Schnittstellenbeschreibung</xs:documentation>
+		</xs:annotation>
+		<xs:attribute name="V" type="xs:string" use="required"/>
+		<xs:attribute name="URL" type="xs:anyURI" use="optional"/>
+	</xs:complexType>
+	<!--
+	============================================================
+	Geltungsbereich: 
+	wenn die Daten nur in bestimmten KV-Bereichen gelten
+	============================================================-->
+	<xs:element name="scope" type="scope_typ">
+		<xs:annotation>
+			<xs:documentation>Geltungsbereich</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="scope_typ">
+		<xs:sequence>
+			<xs:element name="id" type="scope_id_typ" maxOccurs="unbounded"/>
+			<xs:element name="scope.type_cd" type="scope.type_cd_typ">
+				<xs:annotation>
+					<xs:documentation>z.B. 1=KV-Geltungsbereich</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element name="scope.nm" type="v_string_typ" minOccurs="0" maxOccurs="unbounded">
+				<xs:annotation>
+					<xs:documentation>Name des Bereichs zu dem id-Element (z.B. KV-Nord)</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<xs:complexType name="scope_id_typ">
+		<xs:complexContent>
+			<xs:restriction base="id_typ">
+				<xs:attribute name="RT" type="xs:string" use="required" fixed="1.2.276.0.76.5.106"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<xs:complexType name="scope.type_cd_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.107"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<!--
+	============================================================
+	Bearbeitungszustand: 
+	kann als kodierter Wert angegeben werden, im welchen Bearbeitungszustand das Dokument sich befindet
+	============================================================-->
+	<xs:element name="state" type="state_typ">
+		<xs:annotation>
+			<xs:documentation>Bearbeitungszustand</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="state_typ">
+		<xs:complexContent>
+			<xs:restriction base="v_s_string_typ">
+				<xs:attribute name="S" type="xs:string" use="optional" fixed="1.2.276.0.76.5.108"/>
+			</xs:restriction>
+		</xs:complexContent>
+	</xs:complexType>
+	<!-- ======================================================================= -->
+	<!-- einfache Typen -->
+	<!-- ======================================================================= -->
+	<xs:simpleType name="null.code.set">
+		<xs:annotation>
+			<xs:documentation>Ausprägungen für NULL-Attribut</xs:documentation>
+		</xs:annotation>
+		<xs:restriction base="xs:string">
+			<xs:enumeration value="NI"/>
+			<xs:enumeration value="NA"/>
+			<xs:enumeration value="UNK"/>
+			<xs:enumeration value="NASK"/>
+			<xs:enumeration value="ASKU"/>
+			<xs:enumeration value="NAV"/>
+			<xs:enumeration value="OTH"/>
+			<xs:enumeration value="PINF"/>
+			<xs:enumeration value="NINF"/>
+		</xs:restriction>
+	</xs:simpleType>
+	<xs:simpleType name="guid_typ">
+		<xs:annotation>
+			<xs:documentation>Typ für einen Global Unique Identifier</xs:documentation>
+		</xs:annotation>
+		<xs:restriction base="xs:string">
+			<xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
+		</xs:restriction>
+	</xs:simpleType>
+	<xs:simpleType name="zeitraum_typ">
+		<xs:annotation>
+			<xs:documentation>Zeitraum datum..datum</xs:documentation>
+		</xs:annotation>
+		<xs:restriction base="xs:string">
+			<xs:pattern value="([1,2][0-9]{3}-[0-1][0-9]-(([0-2][0-9])|([3][0-1]))\.\.[1,2][0-9]{3}-[0-1][0-9]-(([0-2][0-9])|([3][0-1])))|([1,2][0-9]{3}-[0-1][0-9]-(([0-2][0-9])|([3][0-1])))|(\.\.[1,2][0-9]{3}-[0-1][0-9]-(([0-2][0-9])|([3][0-1])))|([1,2][0-9]{3}-[0-1][0-9]-(([0-2][0-9])|([3][0-1]))\.\.)"/>
+		</xs:restriction>
+	</xs:simpleType>
+	<xs:simpleType name="ignore_typ">
+		<xs:restriction base="xs:string">
+			<xs:enumeration value="all"/>
+			<xs:enumeration value="markup"/>
+		</xs:restriction>
+	</xs:simpleType>
+</xs:schema>

Added: xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_header_V1.30.xsd_
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_header_V1.30.xsd_?rev=328804&view=auto
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_header_V1.30.xsd_ (added)
+++ xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_header_V1.30.xsd_ Wed Oct 26 23:22:06 2005
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+/*   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.
+ */
+-->
+
+<!-- =======================================================================
+ Typdefinitionen für ehd-Schnittstellen,
+Namensraum ist:  urn:ehd/001
+Damit Elementnamen nicht umdefiniert werden können, ist blockDefault="substitution" gesetzt.
+Bei Ableitung von neuen Schnittstellen, ist dieses Attribut (blockDefault) auch zu setzen.
+=======================================================================-->
+<xs:schema targetNamespace="urn:ehd/001"
+						xmlns="urn:ehd/001" 
+						elementFormDefault="qualified" 
+						attributeFormDefault="unqualified" 
+						blockDefault="substitution" 
+						xmlns:xs="http://www.w3.org/2001/XMLSchema">
+	<!-- ======================================================================= 
+	allgemeine Bibliothek von wiederverwendbaren Typen einbinden
+	======================================================================= -->
+	<xs:include schemaLocation="xmlbeans_184_datentypen_V1.30.xsd_"/>
+	<!-- ======================================================================= 
+	EHD-Header
+	hier ist der allgemeiner Header definiert. Für die Entwicklung von Schnittstellen, kann der 
+	ehd_header_typ abgeleitet und eingeschränkt werden. 
+	======================================================================= -->
+	<xs:complexType name="ehd_header_typ" final="extension">
+		<xs:annotation>
+			<xs:documentation>ehd-header</xs:documentation>
+		</xs:annotation>
+		<xs:sequence>
+			<xs:element ref="id"/>
+			<xs:element ref="set_id" minOccurs="0"/>
+			<xs:element ref="version_nbr" minOccurs="0"/>
+			<xs:element ref="document_type_cd"/>
+			<xs:element ref="service_tmr" minOccurs="0"/>
+			<xs:element ref="origination_dttm"/>
+			<xs:element ref="document_relationship" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="intended_recipient" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="originator" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="provider" maxOccurs="unbounded"/>
+			<xs:element ref="scope" minOccurs="0" maxOccurs="unbounded"/>
+			<xs:element ref="state" minOccurs="0"/>
+			<xs:element ref="interface"/>
+			<xs:element ref="local_header" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+</xs:schema>

Added: xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_root_V1.30.xsd_
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_root_V1.30.xsd_?rev=328804&view=auto
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_root_V1.30.xsd_ (added)
+++ xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_ehd_root_V1.30.xsd_ Wed Oct 26 23:22:06 2005
@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+/*   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.
+ */
+-->
+
+<!-- =======================================================================
+ehd-Schnittstelle "eHealthData"
+Die Hauptintention von ehd ist es, einen Rahmen zu schaffen, in dem beliebige XML-Schnittstellen 
+entstehen können, für die der CDA-Header von SCIPHOX ungeeignet ist. Dabei wird Wert darauf 
+gelegt, weitgehend kompatibel zu SCIPHOX zu sein: Von begründeten Ausnahmen abgesehen, 
+werden für alle ehd-Schnittstellen die Elemente aus SCIPHOX übernommen. 
+
+Namensraum ist:  urn:ehd/001
+
+Damit Elementnamen nicht umdefiniert werden können, ist blockDefault="substitution" gesetzt.
+Bei Ableitung von neuen Schnittstellen, ist dieses Attribut (blockDefault) auch zu setzen.
+Die Version der Schnittstelle ist im version-Attribut hinterlegt.
+
+version="1.30"
+=======================================================================-->
+<xs:schema xmlns="urn:ehd/001" xmlns:ehd="urn:ehd/001" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ehd/001" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="substitution" version="1.30">
+	<!-- ======================================================================= 
+	ehd_Dateien einbinden
+	======================================================================= -->
+	<xs:include schemaLocation="xmlbeans_184_ehd_header_V1.30.xsd_"/>
+	<xs:include schemaLocation="xmlbeans_184_keytabs_V1.30.xsd_"/>
+	<!-- ======================================================================= 
+	ehd_root_typ
+	======================================================================= -->
+	<xs:complexType name="ehd_root_typ">
+		<xs:sequence>
+			<xs:element name="header" type="ehd_header_typ">
+				<xs:annotation>
+					<xs:documentation>alle Metainformationen zu den Daten</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element name="body" type="ehd_body_typ">
+				<xs:annotation>
+					<xs:documentation>die eigentlichen Daten</xs:documentation>
+				</xs:annotation>
+			</xs:element>
+			<xs:element ref="keytabs" minOccurs="0"/>
+		</xs:sequence>
+		<xs:attribute name="ehd_version" type="ehd_version_typ" use="required"/>
+	</xs:complexType>
+	<!--
+	============================================================
+	Versionierung der Schema:
+	im Schema-Attribut "version" steht immer die aktuelle Versionsnummer.
+	Im Pflichtattribut "ehd_version" wird im XML-Dokument die EHD-Version 
+	angegebenen, mit der das Dokument erstellt wurde. Ein bestimmter Wert wird 
+	hier bewußt nicht vorgegeben, damit bei geringfügigen Änderungen, noch 
+	Aufwärtskompatibilität gewährleistet werden kann.
+	============================================================-->
+	<xs:simpleType name="ehd_version_typ">
+		<xs:restriction base="xs:decimal">
+			<xs:pattern value="\d?\d\.\d\d"/>
+		</xs:restriction>
+	</xs:simpleType>
+	<!--
+	============================================================
+	ehd_body_typ,  hier können die Schnittstellenspezifischen Elemente u. Attribute
+	definiert werden. Wenn der Parser die neuen Elemente nicht kennt, wird
+	keine Fehlermeldung ausgegeben. Wenn die Elementdefinition jedoch vorhanden
+	ist, aber die Struktur in der XML-Instance nicht eingehalten wird, meldet
+	der Parser einen Fehler.
+	============================================================
+	-->
+	<xs:complexType name="ehd_body_typ">
+		<xs:choice minOccurs="0" maxOccurs="unbounded">
+			<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
+		</xs:choice>
+	</xs:complexType>
+</xs:schema>

Added: xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_keytabs_V1.30.xsd_
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_keytabs_V1.30.xsd_?rev=328804&view=auto
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_keytabs_V1.30.xsd_ (added)
+++ xmlbeans/trunk/test/cases/xbean/misc/jira/xmlbeans_184_keytabs_V1.30.xsd_ Wed Oct 26 23:22:06 2005
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+/*   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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="urn:ehd/001" xmlns="urn:ehd/001" xmlns:ehd="urn:ehd/001" xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="substitution">
+	<!-- ************************ keytabs ********************************* -->
+	<xs:element name="keytabs" type="keytabs_typ" final="extension">
+		<xs:annotation>
+			<xs:documentation>Schlüsseltabellen zu den Daten</xs:documentation>
+		</xs:annotation>
+		<xs:unique name="u_keytab_S_SV">
+			<xs:selector xpath="./ehd:keytab"/>
+			<xs:field xpath="@S"/>
+			<xs:field xpath="@SV"/>
+		</xs:unique>
+	</xs:element>
+	<xs:complexType name="keytabs_typ">
+		<xs:sequence>
+			<xs:element ref="keytab" maxOccurs="unbounded"/>
+		</xs:sequence>
+	</xs:complexType>
+	<!-- ************************ keytab ********************************* -->
+	<xs:element name="keytab" type="keytab_typ">
+		<xs:annotation>
+			<xs:documentation>Sclüsseltabelle mit S=OID, SN=Name der Schlüsseltabelle, SV=Version</xs:documentation>
+		</xs:annotation>
+		<xs:key name="k_keytab_S_SV">
+			<xs:selector xpath="."/>
+			<xs:field xpath="@S"/>
+			<xs:field xpath="@SV"/>
+		</xs:key>
+		<xs:keyref name="kref_keytab_S_SV" refer="k_keytab_S_SV">
+			<xs:selector xpath="ehd:key"/>
+			<xs:field xpath="@S"/>
+			<xs:field xpath="@SV"/>
+		</xs:keyref>
+		<xs:unique name="u_key_V_S_SV">
+			<xs:selector xpath="ehd:key"/>
+			<xs:field xpath="@V"/>
+			<xs:field xpath="@S"/>
+			<xs:field xpath="@SV"/>
+		</xs:unique>
+	</xs:element>
+	<xs:complexType name="keytab_typ">
+		<xs:sequence>
+			<xs:element ref="key" maxOccurs="unbounded"/>
+		</xs:sequence>
+		<xs:attribute name="S" type="xs:string" use="required"/>
+		<xs:attribute name="SN" type="xs:string" use="required"/>
+		<xs:attribute name="SV" type="xs:string" use="required"/>
+	</xs:complexType>
+	<!-- ************************ key ********************************* -->
+	<xs:element name="key" type="key_typ">
+		<xs:annotation>
+			<xs:documentation>Schlüssel mit V=Wert, DN=WertBezeichnung, S=OID zur welchen Sclüsseltabelle der Wert gehört, SV=Version der Schlüsseltabelle</xs:documentation>
+		</xs:annotation>
+	</xs:element>
+	<xs:complexType name="key_typ">
+		<xs:attribute name="V" type="xs:string" use="required"/>
+		<xs:attribute name="S" type="xs:string" use="required"/>
+		<xs:attribute name="SV" type="xs:string" use="required"/>
+		<xs:attribute name="DN" type="xs:string" use="required"/>
+	</xs:complexType>
+</xs:schema>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org