<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
Copyright 1999-2004 The Apache Software Foundation | |
Licensed under the Apache License, Version 2.0 (the "License"); | |
you may not use this file except in compliance with the License. | |
You may obtain a copy of the License at | |
http://www.apache.org/licenses/LICENSE-2.0 | |
Unless required by applicable law or agreed to in writing, software | |
distributed under the License is distributed on an "AS IS" BASIS, | |
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
See the License for the specific language governing permissions and | |
limitations under the License. | |
--> | |
<xs:schema targetNamespace="http://cocoon.apache.org/cob-deployment/1.0" | |
xmlns="http://cocoon.apache.org/cob-deployment/1.0" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
elementFormDefault="qualified"> | |
<xs:element name="deploy"> | |
<xs:complexType> | |
<xs:all> | |
<xs:element ref="locators" minOccurs="1" maxOccurs="1"/> | |
<xs:element ref="install" minOccurs="1" maxOccurs="1"/> | |
</xs:all> | |
</xs:complexType> | |
</xs:element> | |
<!-- properties --> | |
<xs:element name="locators"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="locator" maxOccurs="unbounded"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="locator"> | |
<xs:complexType> | |
<xs:attribute name="uri" type="xs:anyURI" use="required"/> | |
<xs:attribute name="add-unavailable-blocks" use="optional" type="xs:boolean" default="false"/> | |
</xs:complexType> | |
</xs:element> | |
<!-- install (cocoon, blocks) --> | |
<xs:element name="install"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="cocoon" minOccurs="1" maxOccurs="1"/> | |
<xs:element ref="block" minOccurs="0" maxOccurs="unbounded"/> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="cocoon"> | |
<xs:complexType> | |
<xs:attribute name="target-uri" type="xs:anyURI" use="required"/> | |
<xs:attribute name="version" use="required"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<xs:pattern value="2.2"/> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:attribute> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="block"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element ref="use" minOccurs="0" maxOccurs="unbounded"/> | |
<xs:element ref="property" minOccurs="0" maxOccurs="unbounded"/> | |
</xs:sequence> | |
<xs:attribute name="id" type="xs:anyURI" use="required"/> | |
<xs:attribute name="auto-resolve" type="xs:boolean" use="optional" default="false"/> | |
<xs:attribute name="path" type="xs:anyURI" use="optional"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="use"> | |
<xs:complexType> | |
<xs:attribute name="interface" type="xs:anyURI" use="required"/> | |
<xs:attribute name="block" type="xs:anyURI" use="required"/> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="property"> | |
<xs:complexType> | |
<xs:attribute name="name" type="xs:string" use="required"/> | |
<xs:attribute name="value" type="xs:string" use="required"/> | |
</xs:complexType> | |
</xs:element> | |
</xs:schema> |