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/07/29 01:28:57 UTC

svn commit: r226289 - in /xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler: ./ union_initial.xsd union_redefine.xsd

Author: cezar
Date: Thu Jul 28 16:28:55 2005
New Revision: 226289

URL: http://svn.apache.org/viewcvs?rev=226289&view=rev
Log:
Contributed by Rajiv Balachandran. Adding xsd files for the scomp test case in 226288

Added:
    xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/
    xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_initial.xsd
    xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_redefine.xsd

Added: xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_initial.xsd
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_initial.xsd?rev=226289&view=auto
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_initial.xsd (added)
+++ xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_initial.xsd Thu Jul 28 16:28:55 2005
@@ -0,0 +1,43 @@
+<?xml version="1.0"?>
+<!--
+/*   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.
+ */
+-->
+
+<xsd:schema
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	elementFormDefault="qualified"
+	attributeFormDefault="unqualified">
+
+  
+  	<xsd:simpleType name="orderTypeCodedType">
+		<xsd:union> 
+			<xsd:simpleType>
+				<xsd:restriction base="xsd:integer">
+					<xsd:enumeration  value="1"/>
+					<xsd:enumeration value="3"/>
+				</xsd:restriction>
+			</xsd:simpleType>
+ 			<xsd:simpleType>
+				<xsd:restriction base="xsd:token">
+      				<xsd:enumeration value="newConnect"/>
+				<xsd:enumeration value="changeService"/>
+				</xsd:restriction>
+			</xsd:simpleType>
+		</xsd:union> 
+	</xsd:simpleType>
+
+
+</xsd:schema>

Added: xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_redefine.xsd
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_redefine.xsd?rev=226289&view=auto
==============================================================================
--- xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_redefine.xsd (added)
+++ xmlbeans/trunk/test/cases/xbean/compile/scomp/schemacompiler/union_redefine.xsd Thu Jul 28 16:28:55 2005
@@ -0,0 +1,35 @@
+<?xml version="1.0"?>
+<!--
+/*   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.
+ */
+-->
+
+<xsd:schema
+    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    targetNamespace="http://www.example.com/IPO"
+    xmlns="http://www.example.com/IPO"
+    xmlns:ipo="http://www.example.com/IPO"
+    elementFormDefault="qualified"
+    attributeFormDefault="unqualified">
+
+    <xsd:redefine schemaLocation="union_initial.xsd">
+        <xsd:simpleType name="orderTypeCodedType">
+            <xsd:restriction base="orderTypeCodedType">
+                <xsd:enumeration value="newConnect"/>
+            </xsd:restriction>
+        </xsd:simpleType>
+    </xsd:redefine>
+
+</xsd:schema>



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