<?xml version='1.0' encoding='UTF-8' ?>
<xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema" targetNamespace="urn:ds:engspec:filterimport" xmlns="urn:ds:engspec:filterimport">
<xs:element name = "EnsFilters" >
<xs:annotation>
<xs:documentation>Main node containing all filters to be imported</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element ref="EnsFilter"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:element name = "EnsFilter">
<xs:annotation>
<xs:documentation>Root node for one filter description</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="Attribute" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="LinkForPartType" minOccurs="0" maxOccurs="1"/>
<xs:element ref="ReturnedPartType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="Unit" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name = "FilterName" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The name to be given to the filter</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "FilterType" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The filter type. Use internal names</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = "Attribute">
<xs:annotation>
<xs:documentation>Describe one attribute of the filter</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name = "Name" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The PLM Attribute name. Use internal names</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "Value" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The PLM Attribute value. Only string attributtes are officialy supported</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = "ReturnedPartType">
<xs:annotation>
<xs:documentation>One returned part type</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name = "Name" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the returned part type. Use internal names</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="Unit">
<xs:annotation>
<xs:documentation>Node for one Unit</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="DataSource" minOccurs="0" maxOccurs="1"/>
<xs:element ref="ReturnedPartType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="PlmPart" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
<xs:attribute name = "Name" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The name to be given to the unit</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="UnitMode" type="unitmodekind" default="ExplicitList">
<xs:annotation>
<xs:documentation>The filter unit mode. Use internal names</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name="DataSource">
<xs:annotation>
<xs:documentation>Node for DataSource</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name = "Technology" type="technokind" default="V6Catalog">
<xs:annotation>
<xs:documentation>The name of the technology of DataSource.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "RepoCriteria" type = "xs:string" default="">
<xs:annotation>
<xs:documentation>The Repository Criteria</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "TopRepository" type = "xs:string" default="">
<xs:annotation>
<xs:documentation>The ID of the DataSource Top Repository (Catalog or Library)</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "LeafRepository" type = "xs:string" default="">
<xs:annotation>
<xs:documentation>The ID of the DataSource Leaf Repository (Chapter or Class)</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = "PlmPart">
<xs:annotation>
<xs:documentation>Node for one PLM Part</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name = "PartName" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the part. This is the non-editable name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "PartVersion" type = "xs:string">
<xs:annotation>
<xs:documentation>The majorrevision attribute value</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:element name = "LinkForPartType">
<xs:annotation>
<xs:documentation>Node for Linked Table/Column for returned PartType</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name = "TableName" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the linked table. This is the non-editable name.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "TableRevision" type = "xs:string">
<xs:annotation>
<xs:documentation>The majorrevision attribute value</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name = "ColumnName" type = "xs:string" use="required">
<xs:annotation>
<xs:documentation>The name of the linked column.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:simpleType name = "unitmodekind">
<xs:restriction base = "xs:string">
<xs:enumeration value="ExplicitList"/>
<xs:enumeration value="FormulaAsynchronized"/>
<xs:enumeration value="FormulaSynchronized"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name = "technokind">
<xs:restriction base = "xs:string">
<xs:enumeration value="V6Catalog"/>
<xs:enumeration value="LibraryCentralWebRefs"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>