diff options
author | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
---|---|---|
committer | dims <dims@13f79535-47bb-0310-9956-ffa450edef68> | 2008-06-17 00:23:01 +0000 |
commit | bdd0a41aed7edf21ec2a65cfa17a86af2ef8c48a (patch) | |
tree | 38a92061c0793434c4be189f1d70c3458b6bc41d /java/sdo-cts/sdo2.1/src/main/resources |
Move Tuscany from Incubator to top level.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@668359 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sdo-cts/sdo2.1/src/main/resources')
69 files changed, 2482 insertions, 0 deletions
diff --git a/java/sdo-cts/sdo2.1/src/main/resources/api_test.xsd b/java/sdo-cts/sdo2.1/src/main/resources/api_test.xsd new file mode 100644 index 0000000000..c740060161 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/api_test.xsd @@ -0,0 +1,89 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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:sdo="commonj.sdo" xmlns:sdoXML="commonj.sdo/xml" xmlns:api="http://www.example.com/api_test" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/api_test"> + <!-- <xsd:import namespace="commonj.sdo" schemaLocation="sdoModel.xsd"/> --> + + <xsd:element name="apiTestElem" type="api:APITest"/> + + <xsd:complexType name="APITest"> + <xsd:sequence> + <xsd:element name="stringVal" type="xsd:string"/> + <xsd:element name="booleanVal" type="xsd:boolean"/> + <xsd:element name="booleanVal2" type="xsd:boolean"/> + <xsd:element name="byteVal" type="xsd:byte"/> + <xsd:element name="stringVal2" type="xsd:string"/> + <xsd:element name="decimalVal" type="xsd:decimal"/> + <xsd:element name="decimalVal2" sdo:aliasName="dec2" type="xsd:decimal"/> + <xsd:element name="intVal" type="xsd:int"/> + <xsd:element name="floatVal" type="xsd:float"/> + <xsd:element name="doubleVal" type="xsd:double"/> + <xsd:element name="dateVal" type="xsd:dateTime"/> + <xsd:element name="shortVal" type="xsd:short"/> + <xsd:element name="longVal" type="xsd:long"/> + <xsd:element maxOccurs="unbounded" minOccurs="0" name="containMany" type="api:APITest"/> + <xsd:element name="bytesVal" type="xsd:hexBinary"/> + <xsd:element name="integerVal" type="xsd:integer"/> + <xsd:element name="charVal" type="api:char"/> + <xsd:element name="readOnlyVal" type="xsd:string" sdoXML:readOnly="true"/> + <xsd:element name="sequencedElem" type="api:Sequenced"/> + <xsd:element name="extendedElem" type="api:Extended"/> + <xsd:element name="openElem" type="api:Open"/> + <xsd:element name="contain" type="api:APITest"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Sequenced" mixed="true"> + <xsd:sequence> + <xsd:element maxOccurs="unbounded" minOccurs="0" name="Numbers" type="xsd:int"/> + <xsd:element maxOccurs="unbounded" minOccurs="0" name="Letters" type="xsd:string"/> + <xsd:element maxOccurs="unbounded" minOccurs="0" name="containMany" type="api:Sequenced"/> + <xsd:element name="contain" type="api:Sequenced"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Open"> + <xsd:sequence> + <xsd:element name="defined" type="xsd:string"/> + <xsd:any maxOccurs="unbounded" namespace="##any"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:simpleType name="char"> + <xsd:restriction base="xsd:string"> + <xsd:length value="1"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:complexType abstract="true" name="Abstract"> + <xsd:sequence> + <xsd:element name="firstName" type="xsd:string"/> + <xsd:element name="lastName" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Extended" sdo:aliasName="Ext2"> + <xsd:complexContent> + <xsd:extension base="api:Abstract"> + <xsd:sequence> + <xsd:element name="nickName" type="xsd:string"/> + <xsd:element name="middleName" type="xsd:string"/> + </xsd:sequence> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + +</xsd:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/choice/TC224.xsd b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC224.xsd new file mode 100644 index 0000000000..3851b9b837 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC224.xsd @@ -0,0 +1,33 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:TC224="http://www.example.com/TC224" targetNamespace="http://www.example.com/TC224"> + <xs:element name="rootElement"> + <xs:annotation> + <xs:documentation>Comment describing your root element</xs:documentation> + </xs:annotation> + </xs:element> + <xs:complexType name="choiceType"> + <xs:choice> + <xs:element name="red"/> + <xs:element name="green"/> + <xs:element name="blue"/> + </xs:choice> + </xs:complexType> +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/choice/TC225.xsd b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC225.xsd new file mode 100644 index 0000000000..c3b675faa1 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC225.xsd @@ -0,0 +1,33 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:TC225="http://www.example.com/TC225" targetNamespace="http://www.example.com/TC225"> + <xs:element name="rootElement"> + <xs:annotation> + <xs:documentation>Comment describing your root element</xs:documentation> + </xs:annotation> + </xs:element> + <xs:complexType name="choiceType"> + <xs:choice maxOccurs="unbounded"> + <xs:element name="red"/> + <xs:element name="green"/> + <xs:element name="blue"/> + </xs:choice> + </xs:complexType> +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/choice/TC226.xsd b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC226.xsd new file mode 100644 index 0000000000..984f0e6a32 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC226.xsd @@ -0,0 +1,33 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:TC226="http://www.example.com/TC226" targetNamespace="http://www.example.com/TC226"> + <xs:element name="rootElement"> + <xs:annotation> + <xs:documentation>Comment describing your root element</xs:documentation> + </xs:annotation> + </xs:element> + <xs:complexType name="choiceType"> + <xs:choice> + <xs:element name="red" type="xs:string"/> + <xs:element name="green"/> + <xs:element name="blue"/> + </xs:choice> + </xs:complexType> +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/choice/TC227.xsd b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC227.xsd new file mode 100644 index 0000000000..734c2763fd --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/choice/TC227.xsd @@ -0,0 +1,33 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:TC227="http://www.example.com/TC227" targetNamespace="http://www.example.com/TC227"> + <xs:element name="rootElement"> + <xs:annotation> + <xs:documentation>Comment describing your root element</xs:documentation> + </xs:annotation> + </xs:element> + <xs:complexType name="choiceType"> + <xs:choice maxOccurs="5"> + <xs:element name="red"/> + <xs:element name="green"/> + <xs:element name="blue"/> + </xs:choice> + </xs:complexType> +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_01.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_01.xsd new file mode 100644 index 0000000000..bc66ce6bb5 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_01.xsd @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/1/"> + <xs:complexType name="cT_01"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_02.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_02.xsd new file mode 100644 index 0000000000..4f3f47d1bd --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_02.xsd @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/2/"> + <xs:complexType name="cT_02" abstract="true"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_03.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_03.xsd new file mode 100644 index 0000000000..58046c76e4 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_03.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/3/" xmlns:tns="http://www.example.com/xsd/3/"> + <xs:complexType name="cT_03_parent"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="cT_03_child" > + <xs:complexContent> + <xs:extension base="tns:cT_03_parent"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_04.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_04.xsd new file mode 100644 index 0000000000..9bfec9f0a7 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_04.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/4/" xmlns:tns="http://www.example.com/xsd/4/"> + <xs:complexType name="cT_04_parent" block="#all"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="cT_04_child" > + <xs:complexContent> + <xs:extension base="tns:cT_04_parent"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_05.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_05.xsd new file mode 100644 index 0000000000..56b2f0f0fa --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_05.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/5/" xmlns:tns="http://www.example.com/xsd/5/"> + + <xs:group name="cT_05_group"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:group> + + <xs:complexType name="cT_05"> + <xs:sequence> + <xs:group ref="tns:cT_05_group" /> + </xs:sequence> + </xs:complexType> + +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_06.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_06.xsd new file mode 100644 index 0000000000..5b2362a06f --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_06.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/6/"> + <xs:element name="cT_06"> + <xs:complexType> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:complexType> + </xs:element> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_07.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_07.xsd new file mode 100644 index 0000000000..7848ce0caa --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_07.xsd @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/7/"> + <xs:complexType name="cT_07"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_09.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_09.xsd new file mode 100644 index 0000000000..be81c20542 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_09.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/9/" xmlns:tns="http://www.example.com/xsd/9/"> + <xs:complexType name="cT_09_parent" abstract="true"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="cT_09_child" final="#all"> + <xs:complexContent> + <xs:extension base="tns:cT_09_parent"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_10.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_10.xsd new file mode 100644 index 0000000000..b484871a75 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_10.xsd @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/10/" xmlns:tns="http://www.example.com/xsd/10/"> + <xs:complexType name="cT_10_parent"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="cT_10_child" > + <xs:complexContent> + <xs:restriction base="tns:cT_10_parent"> + <xs:sequence> + <xs:element name="id" type="xs:int" minOccurs="1" maxOccurs="1" /> + <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" /> + </xs:sequence> + </xs:restriction> + </xs:complexContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_10_b.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_10_b.xsd new file mode 100644 index 0000000000..91a5ea2971 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_10_b.xsd @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.com/xsd/10b/" targetNamespace="http://www.example.com/xsd/10b/"> +<xs:complexType name="address_10b"> + <xs:sequence> + <xs:element name="street" type="xs:string" /> + <xs:element name="city" type="xs:string" /> + <xs:element name="zipcode" type="xs:integer" /> + <xs:element name="country" type="xs:string" /> + </xs:sequence> +</xs:complexType> + +<xs:complexType name="USAddress_10b"> + <xs:complexContent> + <xs:restriction base="tns:address_10b"> + <xs:sequence> + <xs:element name="street" type="xs:string" /> + <xs:element name="city" type="xs:string" /> + <xs:element name="zipcode" type="xs:integer" /> + <xs:element name="country" type="xs:string" fixed="US" /> + </xs:sequence> + </xs:restriction> + </xs:complexContent> +</xs:complexType> + +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_11.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_11.xsd new file mode 100644 index 0000000000..19ac8da8ed --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_11.xsd @@ -0,0 +1,35 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/11/" xmlns:tns="http://www.example.com/xsd/11/"> + <xs:complexType name="cT_11_parent" abstract="true"> + <xs:sequence> + <xs:element name="id" type="xs:int"/> + </xs:sequence> + </xs:complexType> + <xs:complexType name="cT_11_child"> + <xs:complexContent> + <xs:extension base="tns:cT_11_parent"> + <xs:sequence> + <xs:element name="name" type="xs:string"/> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_11_b.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_11_b.xsd new file mode 100644 index 0000000000..146f2acbb8 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_11_b.xsd @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.example.com/xsd/11b/" targetNamespace="http://www.example.com/xsd/11b/"> +<xs:complexType name="address_11b" abstract="true"> + <xs:sequence> + <xs:element name="street" type="xs:string" /> + <xs:element name="city" type="xs:string" /> + </xs:sequence> +</xs:complexType> + +<xs:complexType name="USAddress_11b"> + <xs:complexContent> + <xs:extension base="tns:address_11b"> + <xs:sequence> + <xs:element name="zipcode" type="xs:integer" /> + <xs:element name="country" type="xs:string" fixed="US" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> +</xs:complexType> + +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_17.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_17.xsd new file mode 100644 index 0000000000..cb3c68f8aa --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_17.xsd @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/17/"> + <xs:complexType name="cT_18"> + <xs:simpleContent> + <xs:restriction base="xs:string" /> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_18.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_18.xsd new file mode 100644 index 0000000000..116782df54 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_18.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.example.com/xsd/18/" + xmlns:tns="http://www.example.com/xsd/18/"> + <xs:element name="cT_18" type="tns:cT_18"/> + <xs:complexType name="cT_18"> + <xs:simpleContent> + <xs:extension base="xs:string" /> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_18a.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_18a.xsd new file mode 100644 index 0000000000..c1f0a46710 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_18a.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.example.com/xsd/18a/" + xmlns:tns="http://www.example.com/xsd/18a/"> + <xs:element name="cT_18a" type="tns:cT_18a"/> + <xs:complexType name="cT_18a"> + <xs:simpleContent> + <xs:extension base="xs:dateTime" /> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_19.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_19.xsd new file mode 100644 index 0000000000..039f80b492 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_19.xsd @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/19/"> + <xs:complexType name="cT_19"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="lang" type="xs:string"/> + </xs:extension> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_20.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_20.xsd new file mode 100644 index 0000000000..903c4caa85 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_20.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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. + --> +<!-- complexType with simpleContent with restriction with attribute --> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/20/"> + <xs:complexType name="cT_20"> + <xs:simpleContent> + <xs:restriction base="xs:string"> + <xs:attribute name="lang" type="xs:string" /> + </xs:restriction> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_21.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_21.xsd new file mode 100644 index 0000000000..87b6d0025f --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_21.xsd @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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. + --> +<!-- complexType with simpleContent with restriction with attribute with simpleType --> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/21/"> + <xs:complexType name="cT_21"> + <xs:simpleContent> + <xs:restriction base="xs:string"> + <xs:attribute name="lang"> + <xs:simpleType> + <xs:restriction base="xs:string" /> + </xs:simpleType> + </xs:attribute> + </xs:restriction> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_22.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_22.xsd new file mode 100644 index 0000000000..e332046a09 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_22.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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. + --> +<!-- complexType with simpleContent with extension with attribute --> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/22/"> + <xs:complexType name="cT_22"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="lang" type="xs:string" /> + </xs:extension> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_23.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_23.xsd new file mode 100644 index 0000000000..a0a6e55830 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_23.xsd @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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. + --> +<!-- complexType with simpleContent with extension with attribute with simpleType --> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/23/"> + <xs:complexType name="cT_23"> + <xs:simpleContent> + <xs:extension base="xs:string"> + <xs:attribute name="lang"> + <xs:simpleType> + <xs:restriction base="xs:string" /> + </xs:simpleType> + </xs:attribute> + </xs:extension> + </xs:simpleContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_24.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_24.xsd new file mode 100644 index 0000000000..a100f0bfbf --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_24.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/24/"> + <xs:complexType name="cT_24"> + <xs:all> + <xs:element name="p1" maxOccurs="1" minOccurs="1" type="xs:string" /> + </xs:all> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_25.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_25.xsd new file mode 100644 index 0000000000..f8b471934a --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_25.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/25/"> + <xs:complexType name="cT_25"> + <xs:sequence> + <xs:element name="p1" maxOccurs="1" minOccurs="1" type="xs:string" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_26.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_26.xsd new file mode 100644 index 0000000000..355f23afd3 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_26.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/26/"> + <xs:complexType name="cT_26"> + <xs:sequence> + <xs:element name="p1" maxOccurs="unbounded" minOccurs="0" type="xs:string" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_27.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_27.xsd new file mode 100644 index 0000000000..f233e0e421 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_27.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/27/"> + <xs:complexType name="cT_27"> + <xs:sequence> + <xs:element name="p1" maxOccurs="unbounded" minOccurs="1" type="xs:string" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_28.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_28.xsd new file mode 100644 index 0000000000..2a0bfb7732 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_28.xsd @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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. + --> +<!-- complexType containing an element for each supported data type --> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/28/"> + <xs:complexType name="cT_28"> + <xs:sequence> + <xs:element name="type_anySimpleType" type="xs:anySimpleType" /> + <xs:element name="type_anyType" type="xs:anyType" /> + <xs:element name="type_anyURI" type="xs:anyURI" /> + <xs:element name="type_base64Binary" type="xs:base64Binary" /> + <xs:element name="type_boolean" type="xs:boolean" /> + <xs:element name="type_byte" type="xs:byte" /> + <xs:element name="type_date" type="xs:date" /> + <xs:element name="type_dateTime" type="xs:dateTime" /> + <xs:element name="type_decimal" type="xs:decimal" /> + <xs:element name="type_double" type="xs:double" /> + <xs:element name="type_duration" type="xs:duration" /> + <xs:element name="type_ENTITIES" type="xs:ENTITIES" /> + <xs:element name="type_ENTITY" type="xs:ENTITY" /> + <xs:element name="type_float" type="xs:float" /> + <xs:element name="type_gDay" type="xs:gDay" /> + <xs:element name="type_gMonth" type="xs:gMonth" /> + <xs:element name="type_gMonthDay" type="xs:gMonthDay" /> + <xs:element name="type_gYear" type="xs:gYear" /> + <xs:element name="type_gYearMonth" type="xs:gYearMonth" /> + <xs:element name="type_hexBinary" type="xs:hexBinary" /> + <xs:element name="type_ID" type="xs:ID" /> + <xs:element name="type_IDREF" type="xs:IDREF" /> + <xs:element name="type_IDREFS" type="xs:IDREFS" /> + <xs:element name="type_int" type="xs:int" /> + <xs:element name="type_integer" type="xs:integer" /> + <xs:element name="type_language" type="xs:language" /> + <xs:element name="type_long" type="xs:long" /> + <xs:element name="type_Name" type="xs:Name" /> + <xs:element name="type_NCName" type="xs:NCName" /> + <xs:element name="type_negativeInteger" type="xs:negativeInteger" /> + <xs:element name="type_NMTOKEN" type="xs:NMTOKEN" /> + <xs:element name="type_NMTOKENS" type="xs:NMTOKENS" /> + <xs:element name="type_nonNegativeInteger" type="xs:nonNegativeInteger" /> + <xs:element name="type_nonPositiveInteger" type="xs:nonPositiveInteger" /> + <xs:element name="type_QName" type="xs:QName" /> + <xs:element name="type_positiveInteger" type="xs:positiveInteger" /> + <xs:element name="type_short" type="xs:short" /> + <xs:element name="type_string" type="xs:string" /> + <xs:element name="type_time" type="xs:time" /> + <xs:element name="type_token" type="xs:token" /> + <xs:element name="type_unsignedByte" type="xs:unsignedByte" /> + <xs:element name="type_unsignedInt" type="xs:unsignedInt" /> + <xs:element name="type_unsignedLong" type="xs:unsignedLong" /> + <xs:element name="type_unsignedShort" type="xs:unsignedShort" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_29.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_29.xsd new file mode 100644 index 0000000000..ede07debb1 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_29.xsd @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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. + --> +<!-- complexType containing an attribute for each supported data type --> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/29/"> + <xs:complexType name="cT_29"> + <xs:attribute name="type_anySimpleType" type="xs:anySimpleType" /> + <xs:attribute name="type_anyURI" type="xs:anyURI" /> + <xs:attribute name="type_base64Binary" type="xs:base64Binary" /> + <xs:attribute name="type_boolean" type="xs:boolean" /> + <xs:attribute name="type_byte" type="xs:byte" /> + <xs:attribute name="type_date" type="xs:date" /> + <xs:attribute name="type_dateTime" type="xs:dateTime" /> + <xs:attribute name="type_decimal" type="xs:decimal" /> + <xs:attribute name="type_double" type="xs:double" /> + <xs:attribute name="type_duration" type="xs:duration" /> + <xs:attribute name="type_ENTITIES" type="xs:ENTITIES" /> + <xs:attribute name="type_ENTITY" type="xs:ENTITY" /> + <xs:attribute name="type_float" type="xs:float" /> + <xs:attribute name="type_gDay" type="xs:gDay" /> + <xs:attribute name="type_gMonth" type="xs:gMonth" /> + <xs:attribute name="type_gMonthDay" type="xs:gMonthDay" /> + <xs:attribute name="type_gYear" type="xs:gYear" /> + <xs:attribute name="type_gYearMonth" type="xs:gYearMonth" /> + <xs:attribute name="type_hexBinary" type="xs:hexBinary" /> + <xs:attribute name="type_ID" type="xs:ID" /> + <xs:attribute name="type_IDREF" type="xs:IDREF" /> + <xs:attribute name="type_IDREFS" type="xs:IDREFS" /> + <xs:attribute name="type_int" type="xs:int" /> + <xs:attribute name="type_integer" type="xs:integer" /> + <xs:attribute name="type_language" type="xs:language" /> + <xs:attribute name="type_long" type="xs:long" /> + <xs:attribute name="type_Name" type="xs:Name" /> + <xs:attribute name="type_NCName" type="xs:NCName" /> + <xs:attribute name="type_negativeInteger" type="xs:negativeInteger" /> + <xs:attribute name="type_NMTOKEN" type="xs:NMTOKEN" /> + <xs:attribute name="type_NMTOKENS" type="xs:NMTOKENS" /> + <xs:attribute name="type_nonNegativeInteger" type="xs:nonNegativeInteger" /> + <xs:attribute name="type_nonPositiveInteger" type="xs:nonPositiveInteger" /> + <xs:attribute name="type_QName" type="xs:QName" /> + <xs:attribute name="type_positiveInteger" type="xs:positiveInteger" /> + <xs:attribute name="type_short" type="xs:short" /> + <xs:attribute name="type_string" type="xs:string" /> + <xs:attribute name="type_time" type="xs:time" /> + <xs:attribute name="type_token" type="xs:token" /> + <xs:attribute name="type_unsignedByte" type="xs:unsignedByte" /> + <xs:attribute name="type_unsignedInt" type="xs:unsignedInt" /> + <xs:attribute name="type_unsignedLong" type="xs:unsignedLong" /> + <xs:attribute name="type_unsignedShort" type="xs:unsignedShort" /> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_30.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_30.xsd new file mode 100644 index 0000000000..bc9dae00e4 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_30.xsd @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/30/" xmlns:tns="http://www.example.com/xsd/30/"> + <xs:group name="cT_30_group"> + <xs:sequence> + <xs:element name="p1" type="xs:string" /> + <xs:element name="p2" type="xs:string" /> + </xs:sequence> + </xs:group> + <xs:complexType name="cT_30"> + <xs:sequence> + <xs:group ref="tns:cT_30_group" /> + <xs:element name="p3" type="xs:int" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_31.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_31.xsd new file mode 100644 index 0000000000..d5450624d1 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_31.xsd @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/31/" xmlns:tns="http://www.example.com/xsd/31/"> + <xs:group name="cT_31_group"> + <xs:sequence> + <xs:element name="p1" type="xs:string" /> + <xs:element name="p2" type="xs:string" /> + </xs:sequence> + </xs:group> + <xs:complexType name="cT_31_parent"> + <xs:sequence> + <xs:element name="p4" type="xs:string" /> + <xs:element name="p5" type="xs:string" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="cT_31"> + <xs:complexContent> + <xs:extension base="tns:cT_31_parent"> + <xs:sequence> + <xs:group ref="tns:cT_31_group" /> + <xs:element name="p3" type="xs:int" /> + </xs:sequence> + </xs:extension> + </xs:complexContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_32.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_32.xsd new file mode 100644 index 0000000000..ca7e155748 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_32.xsd @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/32/" xmlns:tns="http://www.example.com/xsd/32/"> + <xs:group name="cT_32_group"> + <xs:sequence> + <xs:element name="p1" type="xs:string" /> + <xs:element name="p2" type="xs:string" /> + </xs:sequence> + </xs:group> + <xs:complexType name="cT_32_parent"> + <xs:sequence> + <xs:element name="p4" type="xs:string" /> + <xs:element name="p5" type="xs:string" /> + </xs:sequence> + </xs:complexType> + <xs:complexType name="cT_32"> + <xs:complexContent> + <xs:restriction base="tns:cT_32_parent"> + <xs:sequence> + <xs:group ref="tns:cT_32_group" /> + <xs:element name="p3" type="xs:int" /> + </xs:sequence> + </xs:restriction> + </xs:complexContent> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_42.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_42.xsd new file mode 100644 index 0000000000..89cb8e2bc4 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_42.xsd @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/42/"> + <xs:complexType name="cT_42" mixed="true"> + <xs:all> + <xs:element name="id" type="xs:int"/> + <xs:element name="name" type="xs:string"/> + </xs:all> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_43.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_43.xsd new file mode 100644 index 0000000000..faed49cc6b --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_43.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/43/"> + <xs:complexType name="cT_43"> + <xs:sequence> + <xs:any maxOccurs="unbounded" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_44.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_44.xsd new file mode 100644 index 0000000000..da9040ab7d --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_44.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/44/"> + <xs:complexType name="cT_44"> + <xs:sequence> + <xs:any maxOccurs="1" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_45.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_45.xsd new file mode 100644 index 0000000000..f4d3b88ca0 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_45.xsd @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/45/"> + <xs:complexType name="cT_45"> + <xs:anyAttribute /> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_46.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_46.xsd new file mode 100644 index 0000000000..237296a1fb --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_46.xsd @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/46/"> + <xs:complexType name="cT_46"> + <xs:sequence> + <xs:element name="id" type="xs:int" /> + <xs:element name="name" type="xs:string" nillable="true"/> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_47.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_47.xsd new file mode 100644 index 0000000000..18b06c6b8c --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_47.xsd @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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. + --> +<!-- complexType containing an anySimpletype element --> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/47/"> + <xs:complexType name="cT_47"> + <xs:sequence> + <xs:element name="type_anySimpleType" type="xs:anySimpleType" /> + </xs:sequence> + </xs:complexType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_48.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_48.xsd new file mode 100644 index 0000000000..617ebf5d01 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_48.xsd @@ -0,0 +1,49 @@ +<?xml version="1.0"?> +<!-- + * 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. + --> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/xsd/48/"> + + <!-- this schema contains two anonymous types contained within "person" elements --> + + <xsd:complexType name="complextype1"> + <xsd:sequence> + <xsd:element name="person"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="first-name" type="xsd:string"/> + <xsd:element name="last-name" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="complextype2"> + <xsd:sequence> + <xsd:element name="person"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="identifier" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_49.xsd b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_49.xsd new file mode 100644 index 0000000000..f11e5474ef --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/complexType/cT_49.xsd @@ -0,0 +1,72 @@ +<?xml version="1.0"?> +<!-- + * 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. + --> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + targetNamespace="http://www.example.com/xsd/49/" + xmlns:tns="http://www.example.com/xsd/49/"> + + + <xsd:complexType name="Base"> + <xsd:sequence> + <xsd:element name="A" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="Derived1"> + <xsd:complexContent> + <xsd:extension base="tns:Base"> + <xsd:sequence> + <xsd:element name="B" type="xsd:string"/> + </xsd:sequence> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + + <xsd:complexType name="Derived2"> + <xsd:complexContent> + <xsd:extension base="tns:Derived1"> + <xsd:sequence> + <xsd:element name="C" type="xsd:string"/> + </xsd:sequence> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + + <xsd:element name="base" type="tns:Base"/> + + <xsd:complexType name="RootType"> + <xsd:sequence> + <xsd:element name="base" type="tns:Base"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:element name="root" type="tns:RootType"/> + + <xsd:complexType name="RootListType"> + <xsd:sequence> + <xsd:element name="base" type="tns:Base" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:element name="rootList" type="tns:RootListType"/> + +</xsd:schema> + + + diff --git a/java/sdo-cts/sdo2.1/src/main/resources/customer1.xml b/java/sdo-cts/sdo2.1/src/main/resources/customer1.xml new file mode 100644 index 0000000000..5a29e30a3c --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/customer1.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="ASCII"?> +<customer:Customer + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:customer="http://example.com/customer" + xsi:type="customer:Customer" + custNum="1" + firstName="John" + lastName="Adams"/>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/customer2.xml b/java/sdo-cts/sdo2.1/src/main/resources/customer2.xml new file mode 100644 index 0000000000..e9ebb92677 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/customer2.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="ASCII"?> +<customer:Customer + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:customer="http://example.com/customer" + xsi:type="customer:Customer" + custNum="2" + firstName="Jeremy" + lastName="Pavick"/>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema.xsd b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema.xsd new file mode 100644 index 0000000000..03c0ff49f6 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema.xsd @@ -0,0 +1,199 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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 + targetNamespace="http://www.example.com/dynamicTypesFromSchema" + xmlns:dtfs="http://www.example.com/dynamicTypesFromSchema" + xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + + <!-- + elements and types for testElement0 + provides examples of using XML Schema primitive datatypes (see 3.2 of XML Schema Part 2) + (QName and NOTATION omitted as they are not appropriate as types for element content.) + --> + + <xsd:complexType name="TestType0" mixed="true"> + <xsd:sequence> + <xsd:element name="string" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/> + <xsd:element name="boolean" minOccurs="0" maxOccurs="unbounded" type="xsd:boolean"/> + <xsd:element name="decimal" minOccurs="0" maxOccurs="unbounded" type="xsd:decimal"/> + <xsd:element name="float" minOccurs="0" maxOccurs="unbounded" type="xsd:float"/> + <xsd:element name="double" minOccurs="0" maxOccurs="unbounded" type="xsd:double"/> + <xsd:element name="duration" minOccurs="0" maxOccurs="unbounded" type="xsd:duration"/> + <xsd:element name="dateTime" minOccurs="0" maxOccurs="unbounded" type="xsd:dateTime"/> + <xsd:element name="time" minOccurs="0" maxOccurs="unbounded" type="xsd:time"/> + <xsd:element name="date" minOccurs="0" maxOccurs="unbounded" type="xsd:date"/> + <xsd:element name="gYearMonth" minOccurs="0" maxOccurs="unbounded" type="xsd:gYearMonth"/> + <xsd:element name="gYear" minOccurs="0" maxOccurs="unbounded" type="xsd:gYear"/> + <xsd:element name="gMonthDay" minOccurs="0" maxOccurs="unbounded" type="xsd:gMonthDay"/> + <xsd:element name="gDay" minOccurs="0" maxOccurs="unbounded" type="xsd:gDay"/> + <xsd:element name="gMonth" minOccurs="0" maxOccurs="unbounded" type="xsd:gMonth"/> + <xsd:element name="hexBinary" minOccurs="0" maxOccurs="unbounded" type="xsd:hexBinary"/> + <xsd:element name="base64Binary" minOccurs="0" maxOccurs="unbounded" type="xsd:base64Binary"/> + <xsd:element name="anyURI" minOccurs="0" maxOccurs="unbounded" type="xsd:anyURI"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:element name="testElement0" type="dtfs:TestType0"/> + + <!-- + elements and types for testElement1 + provides examples of using XML Schema derived datatypes (see 3.3 of XML Schema Part 2) + (ENTITY and ENTITIES omitted as they are not appropriate as types for element content.) + --> + + <xsd:complexType name="TestType1" mixed="true"> + <xsd:sequence> + <xsd:element name="normalizedString" minOccurs="0" maxOccurs="unbounded" type="xsd:normalizedString"/> + <xsd:element name="token" minOccurs="0" maxOccurs="unbounded" type="xsd:token"/> + <xsd:element name="language" minOccurs="0" maxOccurs="unbounded" type="xsd:language"/> + <xsd:element name="NMTOKEN" minOccurs="0" maxOccurs="unbounded" type="xsd:NMTOKEN"/> + <xsd:element name="NMTOKENS" minOccurs="0" maxOccurs="unbounded" type="xsd:NMTOKENS"/> + <xsd:element name="Name" minOccurs="0" maxOccurs="unbounded" type="xsd:Name"/> + <xsd:element name="NCName" minOccurs="0" maxOccurs="unbounded" type="xsd:NCName"/> + <xsd:element name="ID" minOccurs="0" maxOccurs="unbounded" type="xsd:ID"/> + <xsd:element name="IDREF" minOccurs="0" maxOccurs="unbounded" type="xsd:IDREF"/> + <xsd:element name="IDREFS" minOccurs="0" maxOccurs="unbounded" type="xsd:IDREFS"/> + <xsd:element name="integer" minOccurs="0" maxOccurs="unbounded" type="xsd:integer"/> + <xsd:element name="nonPositiveInteger" minOccurs="0" maxOccurs="unbounded" type="xsd:nonPositiveInteger"/> + <xsd:element name="negativeInteger" minOccurs="0" maxOccurs="unbounded" type="xsd:negativeInteger"/> + <xsd:element name="long" minOccurs="0" maxOccurs="unbounded" type="xsd:long"/> + <xsd:element name="int" minOccurs="0" maxOccurs="unbounded" type="xsd:int"/> + <xsd:element name="short" minOccurs="0" maxOccurs="unbounded" type="xsd:short"/> + <xsd:element name="byte" minOccurs="0" maxOccurs="unbounded" type="xsd:byte"/> + <xsd:element name="nonNegativeInteger" minOccurs="0" maxOccurs="unbounded" type="xsd:nonNegativeInteger"/> + <xsd:element name="unsignedLong" minOccurs="0" maxOccurs="unbounded" type="xsd:unsignedLong"/> + <xsd:element name="unsignedInt" minOccurs="0" maxOccurs="unbounded" type="xsd:unsignedInt"/> + <xsd:element name="unsignedShort" minOccurs="0" maxOccurs="unbounded" type="xsd:unsignedShort"/> + <xsd:element name="unsignedByte" minOccurs="0" maxOccurs="unbounded" type="xsd:unsignedByte"/> + <xsd:element name="positiveInteger" minOccurs="0" maxOccurs="unbounded" type="xsd:positiveInteger"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:element name="testElement1" type="dtfs:TestType1"/> + + <!-- + elements and types for testElement2 + provides examples of deriving new types by restriction + --> + + <xsd:simpleType name="month"> + <xsd:restriction base="xsd:int"> + <xsd:minInclusive value="1"/> + <xsd:maxInclusive value="12"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="status"> + <xsd:restriction base="xsd:string"> + <xsd:enumeration value="unspecified"/> + <xsd:enumeration value="Good"/> + <xsd:enumeration value="Indifferent"/> + <xsd:enumeration value="Bad"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="smallOddNumber"> + <xsd:restriction base="xsd:int"> + <xsd:enumeration value="1"/> + <xsd:enumeration value="3"/> + <xsd:enumeration value="5"/> + <xsd:enumeration value="7"/> + <xsd:enumeration value="9"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="oddOrEvenDigits"> + <xsd:restriction base="xsd:int"> + <xsd:pattern value="[13579]*"/> + <xsd:pattern value="[02468]*"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="evenNumberOfOddOrEvenDigits"> + <xsd:restriction base="dtfs:oddOrEvenDigits"> + <xsd:pattern value="(..)*"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="smallBigDecimal"> + <xsd:restriction base="xsd:decimal"> + <xsd:totalDigits value="10"/> + <xsd:fractionDigits value="2"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="smallBigInteger"> + <xsd:restriction base="xsd:integer"> + <xsd:totalDigits value="10"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="smallInt"> + <xsd:restriction base="xsd:int"> + <xsd:totalDigits value="2"/> + </xsd:restriction> + </xsd:simpleType> + + <xsd:simpleType name="monthList"> + <xsd:list itemType="dtfs:month"/> + </xsd:simpleType> + + <xsd:simpleType name="statusOrMonthList"> + <xsd:union memberTypes="dtfs:status dtfs:monthList"/> + </xsd:simpleType> + + <xsd:complexType name="Address"> + <xsd:attribute name="ip" type="xsd:ID"/> + </xsd:complexType> + + <xsd:complexType name="Component"> + <xsd:sequence> + <xsd:any namespace="##any" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="from" use="required" type="xsd:IDREF"/> + <xsd:attribute name="to" use="required" type="xsd:IDREFS"/> + <xsd:attribute name="cc" type="xsd:IDREFS"/> + <xsd:attribute name="bcc" type="xsd:IDREFS"/> + <xsd:attribute name="status" type="dtfs:status"/> + </xsd:complexType> + + <xsd:complexType name="TestType2" mixed="true"> + <xsd:sequence> + <xsd:element name="smallBigDecimal" minOccurs="0" type="dtfs:smallBigDecimal"/> + <xsd:element name="smallBigInteger" minOccurs="0" type="dtfs:smallBigInteger"/> + <xsd:element name="smallInt" minOccurs="0" type="dtfs:smallInt"/> + <xsd:element name="wierdNumber" minOccurs="0" type="dtfs:evenNumberOfOddOrEvenDigits" default="11"/> + <xsd:element name="smallOddNumber" minOccurs="0" type="dtfs:smallOddNumber"/> + <xsd:element name="headerValue" nillable="true" minOccurs="0" type="xsd:int"/> + <xsd:element name="overallStatus" nillable="true" minOccurs="0" type="dtfs:status"/> + <xsd:element name="addresses" minOccurs="1" maxOccurs="unbounded" type="dtfs:Address"/> + <xsd:element name="components" minOccurs="1" maxOccurs="unbounded" type="dtfs:Component"/> + <xsd:element name="item" type="xsd:IDREF"/> + <xsd:element name="items" maxOccurs="unbounded" type="xsd:IDREF"/> + <xsd:element name="cluster" type="xsd:IDREFS"/> + <xsd:element name="clusters" maxOccurs="unbounded" type="xsd:IDREFS"/> + <xsd:element name="statusOrMonthList" minOccurs="0" maxOccurs="unbounded" type="dtfs:statusOrMonthList"/> + <xsd:element ref="dtfs:nCName" minOccurs="0" maxOccurs="unbounded"/> + <xsd:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:element name="nCName" type="xsd:NCName"/> + + <xsd:element name="testElement2" type="dtfs:TestType2"/> + +</xsd:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema0.xml b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema0.xml new file mode 100644 index 0000000000..9231f057cf --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema0.xml @@ -0,0 +1,78 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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. + --> +<dtfs:testElement0 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:dtfs="http://www.example.com/dynamicTypesFromSchema" + xsi:schemaLocation="http://www.example.com/dynamicTypesFromSchema dynamicTypesFromSchema.xsd"> + <string>This is a string. Multiple spaces are preserved.</string> + <boolean>true</boolean> + <boolean>false</boolean> + <boolean>true</boolean> + <boolean>1</boolean> + <boolean>0</boolean> + <decimal>-1.23</decimal> + <decimal>12678967.543233</decimal> + <decimal>+100000.00</decimal> + <decimal>210</decimal> + <float>0</float> + <float>-0</float> +<!-- <float>INF</float> --> + <float>NaN</float> +<!-- <float>-INF</float> --> + <float>-1E4</float> + <float>1267.43233E12</float> + <float>12.78e-2</float> + <float>12</float> + <double>0</double> + <double>-0</double> +<!-- <double>INF</double> --> + <double>NaN</double> +<!-- <double>-INF</double> --> + <double>-1E4</double> + <double>1267.43233E200</double> + <double>12.78e-150</double> + <double>12</double> + <duration>P1Y2M3DT10H30M5S</duration> + <duration>-P120D</duration> + <dateTime>1999-05-31T13:20:00-05:00</dateTime> + <dateTime>2000-01-20T12:00:00</dateTime> + <dateTime>2000-01-20T12:00:00Z</dateTime> + <time>13:20:00-05:00</time> + <time>12:00:00</time> + <time>12:00:00Z</time> + <date>2007-02-01</date> + <date>1990-12-31</date> + <date>1990-12-31-05:00</date> + <date>1990-12-31Z</date> + <gYearMonth>1990-12</gYearMonth> + <gYearMonth>1990-12-05:00</gYearMonth> + <gYearMonth>1990-12Z</gYearMonth> + <gYear>1990</gYear> + <gYear>1990-05:00</gYear> + <gYear>1990Z</gYear> + <gMonthDay>--12-31</gMonthDay> + <gMonthDay>--12-31-05:00</gMonthDay> + <gMonthDay>--12-31Z</gMonthDay> + <gDay>---31</gDay> + <gDay>---31-05:00</gDay> + <gDay>---31Z</gDay> + <gMonth>--12--</gMonth> + <gMonth>--12---05:00</gMonth> + <gMonth>--12--Z</gMonth> + <hexBinary>0FB7</hexBinary> + <base64Binary>GpM7</base64Binary> + <anyURI>http://www.example.com/dynamicTypesFromSchema</anyURI> +</dtfs:testElement0> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema1.xml b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema1.xml new file mode 100644 index 0000000000..f7f059fc21 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema1.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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. + --> +<dtfs:testElement1 + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:dtfs="http://www.example.com/dynamicTypesFromSchema" + xsi:schemaLocation="http://www.example.com/dynamicTypesFromSchema dynamicTypesFromSchema.xsd"> + <normalizedString>a string without CR or TAB characters</normalizedString> + <token>a normalizedString without leading or trailing or multiple internal blanks</token> + <language>en-US</language> + <NMTOKEN>a-sequeunce:of.XML_NameChar_characters</NMTOKEN> + <NMTOKENS>one or more NMTOKEN items separated with single spaces</NMTOKENS> + <Name>A_letter_underscore_or_colon_optionally_followed_by_NameChar_characters</Name> + <NCName>a_Name_without_colons</NCName> + <ID>an_NCName_for_ID_attribute</ID> + <IDREF>an_NCName_for_ID_attribute</IDREF> + <IDREFS>an_NCName_for_ID_attribute an_NCName_for_ID_attribute</IDREFS> + <integer>92233720368547758079223372036854775807</integer> + <integer>0</integer> + <integer>-92233720368547758089223372036854775808</integer> + <nonPositiveInteger>0</nonPositiveInteger> + <nonPositiveInteger>-92233720368547758089223372036854775808</nonPositiveInteger> + <negativeInteger>-1</negativeInteger> + <negativeInteger>-92233720368547758089223372036854775808</negativeInteger> + <long>9223372036854775807</long> + <long>0</long> + <long>-9223372036854775808</long> + <int>2147483647</int> + <int>1</int> + <int>-2147483648</int> + <short>32767</short> + <short>0</short> + <short>-32768</short> + <byte>127</byte> + <byte>0</byte> + <byte>-128</byte> + <nonNegativeInteger>92233720368547758079223372036854775807</nonNegativeInteger> + <nonNegativeInteger>0</nonNegativeInteger> + <unsignedLong>18446744073709551615</unsignedLong> + <unsignedLong>0</unsignedLong> + <unsignedInt>4294967295</unsignedInt> + <unsignedInt>0</unsignedInt> + <unsignedShort>65535</unsignedShort> + <unsignedShort>0</unsignedShort> + <unsignedByte>255</unsignedByte> + <unsignedByte>0</unsignedByte> + <positiveInteger>92233720368547758079223372036854775807</positiveInteger> + <positiveInteger>1</positiveInteger> +</dtfs:testElement1> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema2.xml b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema2.xml new file mode 100644 index 0000000000..f13f9554fc --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/dynamicTypesFromSchema2.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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. + --> +<dtfs:testElement2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:dtfs="http://www.example.com/dynamicTypesFromSchema" + xmlns:notest="http://www.example.com/notChecked" + xsi:schemaLocation="http://www.example.com/dynamicTypesFromSchema dynamicTypesFromSchema.xsd"> + <smallBigDecimal>99999999.88</smallBigDecimal> + <smallBigInteger>8888888888</smallBigInteger> + <smallInt>77</smallInt> + <wierdNumber>1111</wierdNumber> + <smallOddNumber>3</smallOddNumber> + <headerValue xsi:nil="true"/> + <overallStatus xsi:nil="true"/> + <addresses ip="IP.255.255.255.0"/> + <addresses ip="IP.255.255.255.1"/> + <addresses ip="IP.255.255.255.255"/> + <components from="IP.255.255.255.255" status="Good" to="IP.255.255.255.255"/> + <components from="IP.255.255.255.255" status="Indifferent" to="IP.255.255.255.0"/> + <components cc="IP.255.255.255.1" from="IP.255.255.255.255" status="Bad" + to="IP.255.255.255.255"/> + <components bcc="IP.255.255.255.1" from="IP.255.255.255.255" status="unspecified" + to="IP.255.255.255.255"/> + <item>IP.255.255.255.0</item> + <items>IP.255.255.255.1</items> + <items>IP.255.255.255.255</items> + <cluster>IP.255.255.255.0 IP.255.255.255.1</cluster> + <clusters>IP.255.255.255.0 IP.255.255.255.1</clusters> + <clusters>IP.255.255.255.0 IP.255.255.255.1</clusters> + <statusOrMonthList>1 5 12</statusOrMonthList> + <statusOrMonthList>Indifferent</statusOrMonthList> + <dtfs:nCName>A_Non_Colon_Name</dtfs:nCName> + <notest:otherTag statusOrMonthList="1 7 25">The testing of this element is lax.</notest:otherTag> +</dtfs:testElement2> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/mixed2.xml b/java/sdo-cts/sdo2.1/src/main/resources/mixed2.xml new file mode 100644 index 0000000000..d95d179478 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/mixed2.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="ASCII"?> +<mixed:mixedStockQuote + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:mixed="http://www.example.com/mixed" + xsi:type="mixed:MixedQuote"> + <symbol>fbnt</symbol> + <companyName>FlyByNightTechnology</companyName> + some text + <quotes><price>2000.0</price></quotes> + more text + <price>1000.0</price> +</mixed:mixedStockQuote>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/mixedopen.xml b/java/sdo-cts/sdo2.1/src/main/resources/mixedopen.xml new file mode 100644 index 0000000000..21a62ef2d0 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/mixedopen.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="ASCII"?> +<mixed:mixedOpenStockQuote + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:mixed="http://www.example.com/mixed" + xmlns:open="http://www.example.com/open" + xsi:type="mixed:MixedOpenQuote"> + <open:symbol>fbnt</open:symbol> + <companyName>FlyByNightTechnology</companyName> + some text + <quotes><price>2000.0</price></quotes> + more text + <price>1000.0</price> +</mixed:mixedOpenStockQuote> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/open.xsd b/java/sdo-cts/sdo2.1/src/main/resources/open.xsd new file mode 100644 index 0000000000..9a52536efe --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/open.xsd @@ -0,0 +1,48 @@ +<?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. + --> +<xsd:schema xmlns:open="http://www.example.com/open" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/open"> + + <xsd:element name="openStockQuote" type="open:OpenQuote"/> + + <xsd:element name="price" type="xsd:decimal"/> + + <xsd:element name="company"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + + <xsd:complexType name="OpenQuote"> + <xsd:sequence> + <xsd:element name="symbol" type="xsd:string"/> + <xsd:any maxOccurs="unbounded" namespace="##any"/> + </xsd:sequence> + </xsd:complexType> + + <xsd:complexType name="OpenQuote2"> + <xsd:sequence> + <xsd:element name="symbol" type="xsd:string"/> + <xsd:any maxOccurs="1" namespace="##any"/> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/openContentProperty.xml b/java/sdo-cts/sdo2.1/src/main/resources/openContentProperty.xml new file mode 100644 index 0000000000..68f4c116eb --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/openContentProperty.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="ASCII"?> +<open:openStockQuote xmlns:open="http://www.example.com/open"> + <symbol>s1</symbol> + <open:company> + <name>FlyByNightTechnology</name> + </open:company> + <open:price>1000.0</open:price> + <open:highPrice>1100.0</open:highPrice> + <open:mutualFundQuote> + <symbol>mutual-1</symbol> + </open:mutualFundQuote> +</open:openStockQuote>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/sampleSDOSchema/Person.xsd b/java/sdo-cts/sdo2.1/src/main/resources/sampleSDOSchema/Person.xsd new file mode 100644 index 0000000000..6993508285 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/sampleSDOSchema/Person.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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" + xmlns:person="http://www.example.com/person" + xmlns:sdo="commonj.sdo" + targetNamespace="http://www.example.com/person"> + + <xsd:import namespace="commonj.sdo" schemaLocation="sdoModel.xsd"/> + + + +</xsd:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simple.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simple.xsd new file mode 100644 index 0000000000..5310f7e1f3 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simple.xsd @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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 + targetNamespace="http://www.example.com/simple" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:simple="http://www.example.com/simple"> + + <xsd:element name="stockQuote" type="simple:Quote"/> + + <xsd:complexType name="Quote"> + <xsd:sequence> + <xsd:element name="symbol" type="xsd:string"/> + <xsd:element name="companyName" type="xsd:string"/> + <xsd:element name="price" type="xsd:decimal"/> + <xsd:element name="open1" type="xsd:decimal"/> + <xsd:element name="high" type="xsd:decimal"/> + <xsd:element name="low" type="xsd:decimal"/> + <xsd:element name="volume" type="xsd:double"/> + <xsd:element name="change1" type="xsd:double"/> + <xsd:element name="quotes" type="simple:Quote" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/annotation.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/annotation.xsd new file mode 100644 index 0000000000..3da238c980 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/annotation.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/annotation/"> + <xs:simpleType name="simpleTypeAnnotated"> + <xs:annotation> + <xs:documentation>This is a test case for simpleType containing an annotation</xs:documentation> + </xs:annotation> + <xs:restriction base="xs:string"> + <xs:length value="50" /> + </xs:restriction> + </xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/anonymous.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/anonymous.xsd new file mode 100644 index 0000000000..7cd7bf8413 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/anonymous.xsd @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/anonymous"> + <xs:element name="simpleTypeAnon"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:length value="50" /> + </xs:restriction> + </xs:simpleType> + </xs:element> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derived.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derived.xsd new file mode 100644 index 0000000000..7bf074f700 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derived.xsd @@ -0,0 +1,28 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.example.com/simpleType/derived" targetNamespace="http://www.example.com/simpleType/derived"> + <xs:simpleType name="baseType"> + <xs:restriction base="xs:integer"> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="derivedType"> + <xs:restriction base="ns1:baseType"/> + </xs:simpleType> +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derived2.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derived2.xsd new file mode 100644 index 0000000000..41efe54e70 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derived2.xsd @@ -0,0 +1,29 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.example.com/simpleType/derived2" targetNamespace="http://www.example.com/simpleType/derived2"> + <xs:simpleType name="baseType" final="list"> + <xs:restriction base="xs:integer"> + + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="derivedType"> + <xs:restriction base="ns1:baseType"/> + </xs:simpleType> +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derivedUnion.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derivedUnion.xsd new file mode 100644 index 0000000000..101115e8fd --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/derivedUnion.xsd @@ -0,0 +1,40 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.example.com/simpleType/derivedUnion" targetNamespace="http://www.example.com/simpleType/derivedUnion"> + <xs:attribute name="fontsize"> + <xs:simpleType> + <xs:union memberTypes="ns1:fontbynumber ns1:fontbystringname" /> + </xs:simpleType> +</xs:attribute> + +<xs:simpleType name="fontbynumber"> + <xs:restriction base="xs:positiveInteger"> + <xs:maxInclusive value="72"/> + </xs:restriction> +</xs:simpleType> + +<xs:simpleType name="fontbystringname"> + <xs:restriction base="xs:string"> + <xs:enumeration value="small"/> + <xs:enumeration value="medium"/> + <xs:enumeration value="large"/> + </xs:restriction> +</xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/enumeration.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/enumeration.xsd new file mode 100644 index 0000000000..cadffc1a78 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/enumeration.xsd @@ -0,0 +1,49 @@ +<?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 xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns1="http://www.example.com/simpleType/enumeration" targetNamespace="http://www.example.com/simpleType/enumeration"> + <xs:element name="thing" type="ns1:thing"/> + <xs:complexType name="thing"> + <xs:sequence> + <xs:element name="sizeofthing"> + <xs:simpleType> + <xs:restriction base="ns1:size"/> + </xs:simpleType> + </xs:element> + <xs:element name="colorofthing"> + <xs:simpleType> + <xs:restriction base="ns1:color"/> + </xs:simpleType> + </xs:element> + </xs:sequence> + </xs:complexType> + <xs:simpleType name="color" id="clr"> + <xs:restriction base="xs:string"> + <xs:enumeration value="red"/> + <xs:enumeration value="green"/> + <xs:enumeration value="blue"/> + </xs:restriction> + </xs:simpleType> + <xs:simpleType name="size"> + <xs:restriction base="xs:integer"> + <xs:minInclusive value="1" fixed="true"/> + <xs:maxInclusive value="10" fixed="true"/> + </xs:restriction> + </xs:simpleType> +</xs:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalList.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalList.xsd new file mode 100644 index 0000000000..7575a3c6c9 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalList.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/finalList"> + <xs:simpleType name="simpleTypeFinalList" final="list"> + <xs:restriction base="xs:string"> + <xs:length value="50" /> + </xs:restriction> + </xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalRestriction.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalRestriction.xsd new file mode 100644 index 0000000000..ca35b1c488 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalRestriction.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/finalRestriction"> + <xs:simpleType name="simpleTypeFinalRestriction" final="restriction"> + <xs:restriction base="xs:string"> + <xs:length value="50" /> + </xs:restriction> + </xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalUnion.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalUnion.xsd new file mode 100644 index 0000000000..ce28a8d50d --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/finalUnion.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/finalUnion"> + <xs:simpleType name="simpleTypeFinalUnion" final="union"> + <xs:restriction base="xs:string"> + <xs:length value="50" /> + </xs:restriction> + </xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/list.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/list.xsd new file mode 100644 index 0000000000..aeaf934ad4 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/list.xsd @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/list"> + <xs:simpleType name="simpleTypeList"> + <xs:list itemType="xs:string" /> + </xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/restriction.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/restriction.xsd new file mode 100644 index 0000000000..45670e9084 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/restriction.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/restriction"> + <xs:simpleType name="simpleTypeRestriction"> + <xs:restriction base="xs:string"> + <xs:length value="50" /> + </xs:restriction> + </xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleType/union.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/union.xsd new file mode 100644 index 0000000000..394b802c00 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleType/union.xsd @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="ISO-8859-1" ?> +<!-- + * 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 xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/simpleType/union"> + <xs:simpleType name="simpleTypeUnion"> + <xs:union memberTypes="xs:int xs:string" /> + </xs:simpleType> +</xs:schema>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummary.xml b/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummary.xml new file mode 100644 index 0000000000..2f29fc00f0 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummary.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="ASCII"?> +<cs:stockQuote xmlns:cs="http://www.example.com/simpleCS"> + <symbol>FBNT</symbol> + <companyName>FlyByNightTechnology</companyName> + <price>999.0</price> + <volume>1000.0</volume> + <quotes> + <price>1500.0</price> + </quotes> + <quotes> + <price>2500.0</price> + </quotes> + <quotes> + <price>3000.0</price> + </quotes> + <quotes> + <price>4000.0</price> + </quotes> + <changes create="#//quotes[3] #//quotes[4]" delete="#//changes/stockQuote[1]/quotes[2]" logging="false" xmlns:sdo="commonj.sdo"> + <cs:stockQuote sdo:ref="#/stockQuote" sdo:unset="volume"> + <symbol>fbnt</symbol> + <price>1000.0</price> + <quotes sdo:ref="#//quotes[1]" /> + <quotes><price>2000.0</price><quotes><price>2000.99</price></quotes></quotes> + <quotes sdo:ref="#//quotes[2]" /> + </cs:stockQuote> + </changes> +</cs:stockQuote>
\ No newline at end of file diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummary.xsd b/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummary.xsd new file mode 100644 index 0000000000..1df0f69196 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummary.xsd @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable. + * + * 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:sdo="commonj.sdo" xmlns:cs="http://www.example.com/simpleCS" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" targetNamespace="http://www.example.com/simpleCS"> + + + <xsd:import namespace="commonj.sdo" schemaLocation="sdoModel.xsd"/> + + <xsd:complexType name="RootQuote"> + <xsd:complexContent> + <xsd:extension base="cs:Quote"> + <xsd:sequence> + <xsd:element name="changes" type="sdo:ChangeSummaryType"/> + </xsd:sequence> + </xsd:extension> + </xsd:complexContent> + + </xsd:complexType> + + <xsd:element name="stockQuote" type="cs:RootQuote"/> + + <xsd:complexType name="Quote"> + <xsd:sequence> + <xsd:element name="symbol" type="xsd:string"/> + <xsd:element name="companyName" type="xsd:string"/> + <xsd:element name="price" type="xsd:decimal"/> + <xsd:element name="open1" type="xsd:decimal"/> + <xsd:element name="high" type="xsd:decimal"/> + <xsd:element name="low" type="xsd:decimal"/> + <xsd:element name="volume" type="xsd:double"/> + <xsd:element name="change1" type="xsd:double"/> + <xsd:element maxOccurs="unbounded" minOccurs="0" name="quotes" type="cs:Quote"/> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummaryUndone.xml b/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummaryUndone.xml new file mode 100644 index 0000000000..a9c675b6c3 --- /dev/null +++ b/java/sdo-cts/sdo2.1/src/main/resources/simpleWithChangeSummaryUndone.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="ASCII"?> +<cs:stockQuote xmlns:cs="http://www.example.com/simpleCS"> + <symbol>fbnt</symbol> + <companyName>FlyByNightTechnology</companyName> + <price>1000.0</price> + <quotes> + <price>1500.0</price> + </quotes> + <quotes> + <price>2000.0</price> + <quotes> + <price>2000.99</price> + </quotes> + </quotes> + <quotes> + <price>2500.0</price> + </quotes> + <changes logging="false" /> +</cs:stockQuote>
\ No newline at end of file |