alien11689 commented on code in PR #951: URL: https://github.com/apache/aries/pull/951#discussion_r4621178380
########## blueprint/blueprint-core/src/main/resources/org/osgi/service/blueprint/blueprint.xsd: ########## @@ -0,0 +1,1233 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- + /* + * $Id: 2b09558a5a4a6cf1633def5e13fb5737c30a1a8f $ + * + * Copyright (c) OSGi Alliance (2008, 2013). All Rights Reserved. + * + * 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="http://www.osgi.org/xmlns/blueprint/v1.0.0" + xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.osgi.org/xmlns/blueprint/v1.0.0" + elementFormDefault="qualified" attributeFormDefault="unqualified" + version="1.0.1"> + + <xsd:annotation> + <xsd:documentation> + <![CDATA[ + This is the XML Schema for the OSGi Blueprint service 1.0.0 + development descriptor. Blueprint configuration files + using this schema must indicate the schema using the + blueprint/v1.0.0 namespace. For example, + + <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"> + + if used as a qualified namespace, "bp" is the recommended + namespace prefix. + ]]> + </xsd:documentation> + </xsd:annotation> + + <!-- Schema elements for core component declarations --> + + <xsd:complexType name="Tcomponent" abstract="true"> + <xsd:annotation> + <xsd:documentation> + <![CDATA[ + The Tcomponent type is the base type for top-level + Blueprint components. The <bean> <reference>, <service>, + and <reference-list> elements are all derived from + the Tcomponent type. This type defines an id attribute + that is used create references between different components. + Component elements can also be inlined within other component + definitions. The id attribute is not valid when inlined. + ]]> + </xsd:documentation> + </xsd:annotation> + + <xsd:attribute name="id" type="xsd:ID" /> + + <xsd:attribute name="activation" type="Tactivation"> + <xsd:annotation> + <xsd:documentation> + <![CDATA[ + The activation attribute for this component. This can either + be "eager" or "lazy". If not specified, it + defaults to default-activation attribute of the enclosing + <blueprint> element. + ]]> + </xsd:documentation> + </xsd:annotation> + </xsd:attribute> + + <xsd:attribute name="depends-on" type="TdependsOn"> + <xsd:annotation> + <xsd:documentation> + <![CDATA[ + depends-on identifies (by id) other components that this component + depends on. The component only be activated after the + depends-on components are successfully activated. Also, if there + are <reference> or <reference-list> elements with unstatisfied + manadatory references, then the depends-on relationship will also + be used to determine whether this service is enabled or not. + ]]> + </xsd:documentation> + </xsd:annotation> + </xsd:attribute> + </xsd:complexType> + + <xsd:element name="blueprint" type="Tblueprint"> + <xsd:annotation> + <xsd:documentation> + <![CDATA[ + The <blueprint> element is the root element for a blueprint + configuration file. A blueprint configuration has two sections. + The first section (contained within the <type-converters> element) + identifies components that are used for converting values into + different target types. The type converters are optional, so + the file does not need to specify a type converter section. + + Following the type converters are the component definitions. + Components are <bean>, <service>, <reference>, and + <reference-list> elements that identify the bundle components that will + be managed by the blueprint service. + ]]> + </xsd:documentation> + </xsd:annotation> + </xsd:element> + + <xsd:complexType name="Tblueprint"> + <xsd:sequence> + <xsd:element name="description" type="Tdescription" + minOccurs="0" /> + <xsd:element name="type-converters" type="Ttype-converters" + minOccurs="0" maxOccurs="1" /> + <!-- top-level components --> + <xsd:choice minOccurs="0" maxOccurs="unbounded"> + <xsd:element name="service" type="Tservice" /> + <xsd:element name="reference-list" type="Treference-list" /> + <xsd:element name="bean" type="Tbean" /> + <xsd:element name="reference" type="Treference" /> + <xsd:any namespace="##other" processContents="lax" /> Review Comment: I used the blueprint.xsd from blueprint-api artifact instead of the xsd from OSGi -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
