Develop and Download Open Source Software

Browse Subversion Repository

Contents of /NeoFT/xsd/nft_resource.xsd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 49 - (show annotations) (download)
Mon Mar 15 14:12:07 2010 UTC (14 years ago) by c477
File size: 1795 byte(s)
リモート操作による移動
1 <?xml version="1.0" encoding="utf-8"?>
2 <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
3 <xs:element name="properties" type="NFTProperties">
4 <xs:key name="node-id-root">
5 <xs:selector xpath="properties|property" />
6 <xs:field xpath="@name" />
7 </xs:key>
8 </xs:element>
9 <xs:complexType name="PropertyNode">
10 <xs:attribute name="name" type="xs:string" use="required" />
11 </xs:complexType>
12 <xs:complexType name="Property">
13 <xs:simpleContent>
14 <xs:extension base="xs:string">
15 <xs:attribute name="name" type="xs:string" use="required" />
16 <xs:attribute name="type" type="proptype" use="required" />
17 <xs:attribute name="readonly" type="xs:boolean" use="optional" default="false" />
18 </xs:extension>
19 </xs:simpleContent>
20 </xs:complexType>
21 <xs:complexType name="NFTProperties">
22 <xs:sequence>
23 <xs:group ref="propertyNode" maxOccurs="unbounded" />
24 </xs:sequence>
25 <xs:attribute name="name" type="xs:string" use="required" />
26 </xs:complexType>
27 <xs:group name="propertyNode">
28 <xs:sequence>
29 <xs:element name="property" type="Property" minOccurs="0" maxOccurs="1" />
30 <xs:element name="properties" type="NFTProperties" minOccurs="0" maxOccurs="1">
31 <xs:key name="node-id">
32 <xs:selector xpath="properties|property" />
33 <xs:field xpath="@name" />
34 </xs:key>
35 </xs:element>
36 </xs:sequence>
37 </xs:group>
38 <xs:simpleType name="proptype">
39 <xs:restriction base="xs:string">
40 <xs:enumeration value="string" />
41 <xs:enumeration value="int" />
42 <xs:enumeration value="bool" />
43 </xs:restriction>
44 </xs:simpleType>
45 </xs:schema>

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26