Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / service / protocol-plugin / lib / cpluff / examples / cpfile / plugins / core / classifiers.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "http://www.w3.org/2001/XMLSchema.dtd">
3 <!--
4  * Copyright 2007 Johannes Lehtinen
5  * This file is free software; Johannes Lehtinen gives unlimited
6  * permission to copy, distribute and modify it.
7 -->
8 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
9         <xs:element name="extension">
10                 <xs:complexType>
11                         <xs:attribute name="point" type="xs:string" use="required"/>
12                         <xs:attribute name="id" type="simpleIdentifier"/>
13                         <xs:attribute name="name" type="xs:string"/>
14                         
15                         <!--
16                         * The classifier is the name of a symbol pointing to
17                         * classifier_t strucutre. Priority determines the order
18                         * the file classifiers are tried.
19                         -->
20                         <xs:attribute name="classifier" type="xs:string" use="required"/>
21                         <xs:attribute name="priority" type="xs:integer" use="required"/>
22
23                 </xs:complexType>
24         </xs:element>
25         <xs:simpleType name="simpleIdentifier">
26                 <xs:restriction base="xs:string">
27                         <xs:pattern value="[^.]+"/>
28                 </xs:restriction>
29         </xs:simpleType>
30 </xs:schema>