1<?xml version="1.0" encoding="UTF-8"?> 2<!--*********************************************************** 3 * 4 * Licensed to the Apache Software Foundation (ASF) under one 5 * or more contributor license agreements. See the NOTICE file 6 * distributed with this work for additional information 7 * regarding copyright ownership. The ASF licenses this file 8 * to you under the Apache License, Version 2.0 (the 9 * "License"); you may not use this file except in compliance 10 * with the License. You may obtain a copy of the License at 11 * 12 * http://www.apache.org/licenses/LICENSE-2.0 13 * 14 * Unless required by applicable law or agreed to in writing, 15 * software distributed under the License is distributed on an 16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 17 * KIND, either express or implied. See the License for the 18 * specific language governing permissions and limitations 19 * under the License. 20 * 21 ***********************************************************--> 22 23<schema targetNamespace="http://openoffice.org/2004/java/framework/1.0" 24 xmlns:jf="http://openoffice.org/2004/java/framework/1.0" 25 xmlns="http://www.w3.org/2001/XMLSchema" 26 elementFormDefault="qualified"> 27 28 <element name="javaSelection" type="jf:JavaSelectionType"> 29 <unique name="dummy1"> 30 <selector xpath="jf:plugins/jf:library"/> 31 <field xpath="@vendor"/> 32 </unique> 33 34 35 <keyref name="dummy2" refer="jf:pluginKey"> 36 <selector xpath="jf:vendorInfos/jf:vendor"/> 37 <field xpath="@name"/> 38 </keyref> 39 40 <unique name="dummy3"> 41 <selector xpath="jf:vendorInfos/jf:vendor"/> 42 <field xpath="@name"/> 43 </unique> 44 45 <key name="pluginKey"> 46 <selector xpath="jf:plugins/jf:library"/> 47 <field xpath="@vendor"/> 48 </key> 49 </element> 50 51 <complexType name="JavaSelectionType"> 52 <sequence> 53 <element name="updated" type="date"/> 54 <element name="vendorInfos" type="jf:VendorInfoType"/> 55 <element name="plugins" type="jf:PluginType"/> 56 </sequence> 57 </complexType> 58 59 60 <complexType name="VendorInfoType"> 61 <sequence> 62 <element name="vendor" type="jf:VendorType" minOccurs="0" maxOccurs="unbounded"/> 63 </sequence> 64 </complexType> 65 66 <complexType name="PluginType"> 67 <sequence> 68 <element name="library" type="jf:LibraryType" minOccurs="0" maxOccurs="unbounded"/> 69 </sequence> 70 </complexType> 71 72 <complexType name="LibraryType"> 73 <simpleContent> 74 <extension base="string"> 75 <attribute name="vendor" use="required" type="string"/> 76 </extension> 77 </simpleContent> 78 </complexType> 79 80 <complexType name="VendorType"> 81 <sequence> 82 <element name="minVersion" type="string" minOccurs="0"/> 83 <element name="maxVersion" type="string" minOccurs="0"/> 84 <element name="excludeVersions" minOccurs="0"> 85 <complexType> 86 <sequence> 87 <element name="version" type="string" minOccurs="0" maxOccurs="unbounded"/> 88 </sequence> 89 </complexType> 90 </element> 91 </sequence> 92 <attribute name="name" use="required" type="string"/> 93 </complexType> 94 95 96 97</schema> 98