diff options
author | Guillaume Denneulin <guillaume.denneulin@intel.com> | 2014-01-31 15:09:42 +0100 |
---|---|---|
committer | David Wagner <david.wagner@intel.com> | 2014-02-13 16:08:59 +0100 |
commit | 3ba083ee0b0ff7e01caeb3bc7395377071e20fe6 (patch) | |
tree | d639c767d5308ee2658db9d1fc0f946067a74c94 /Schemas/ComponentTypeSet.xsd | |
parent | 7613e74a97d67c392a241ad3a62c6533b31f48ab (diff) | |
download | external_parameter-framework-3ba083ee0b0ff7e01caeb3bc7395377071e20fe6.zip external_parameter-framework-3ba083ee0b0ff7e01caeb3bc7395377071e20fe6.tar.gz external_parameter-framework-3ba083ee0b0ff7e01caeb3bc7395377071e20fe6.tar.bz2 |
In structure XML files, implement component library files inclusion
BZ: 168727
In the PFW structure file, it is not possible to include a component
library from another XML file.
Implement the possibility to import component from another XML file
that would be included in a structure XML file and that would
describe a component library.
Change-Id: Id6125140de1c8e9882375d01199f695b929f45e2
Signed-off-by: Guillaume Denneulin <guillaume.denneulin@intel.com>
Diffstat (limited to 'Schemas/ComponentTypeSet.xsd')
-rw-r--r-- | Schemas/ComponentTypeSet.xsd | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Schemas/ComponentTypeSet.xsd b/Schemas/ComponentTypeSet.xsd new file mode 100644 index 0000000..d00be00 --- /dev/null +++ b/Schemas/ComponentTypeSet.xsd @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> + <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2005/08/xml.xsd"/> + <xs:include schemaLocation="Parameter.xsd"/> + <xs:complexType name="ComponentType"> + <xs:sequence> + <xs:sequence maxOccurs="unbounded"> + <xs:group ref="ParameterBlockGroup"/> + </xs:sequence> + </xs:sequence> + <xs:attributeGroup ref="Nameable"/> + <xs:attribute name="Extends" use="optional"/> + <xs:attribute name="Mapping" use="optional"/> + </xs:complexType> + <xs:group name="ComponentTypeSetGroup"> + <xs:choice> + <xs:element name="ComponentLibrary" type="ComponentTypeSetType"/> + <xs:element name="ComponentTypeSet" type="ComponentTypeSetType"/> + <xs:element name="ComponentType" type="ComponentType"> + <xs:unique name="ComponentTypeSubElementsUniqueness"> + <xs:selector xpath="*"/> + <xs:field xpath="@Name"/> + </xs:unique> + </xs:element> + </xs:choice> + </xs:group> + <xs:complexType name="ComponentTypeSetType"> + <xs:sequence> + <xs:group ref="ComponentTypeSetGroup" minOccurs="0" maxOccurs="unbounded"/> + </xs:sequence> + <xs:attribute ref="xml:base"/> + </xs:complexType> + <xs:element name="ComponentTypeSet" type="ComponentTypeSetType"> + <xs:unique name="ComponentTypeUniquenessInComponentTypeSet"> + <xs:selector xpath=".//ComponentType"/> + <xs:field xpath="@Name"/> + </xs:unique> + </xs:element> +</xs:schema> |