-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathInAppProductDescription.xsd
113 lines (100 loc) · 3.94 KB
/
InAppProductDescription.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://schemas.microsoft.com/appx/2012/InAppProductDescription"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://schemas.microsoft.com/appx/2012/InAppProductDescription">
<xs:simpleType name="NonNullNormalizedString">
<xs:restriction base="xs:normalizedString">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="LangCodeString">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="\s*(\S(\r|\n|.){0,29}\s*)?"/>
</xs:restriction>
</xs:simpleType>
<xs:attributeGroup name="LocIdAttribute">
<xs:attribute name="_locID" type="xs:string" use="optional"/>
</xs:attributeGroup>
<xs:simpleType name="TitleString">
<xs:restriction base="tns:NonNullNormalizedString">
<xs:pattern value="\s*(\S(.){0,100}\s*)?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="DescriptionString">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="\s*(\S(\r|\n|.){0,200}\s*)?"/>
</xs:restriction>
</xs:simpleType>
<xs:attributeGroup name="IconAttribute">
<xs:attribute name="Filename" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="\s*(\S(.){0,96}\.png\s*)?"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="FallbackLanguage" type="tns:LangCodeString" />
</xs:attributeGroup>
<xs:simpleType name="ReleaseString">
<xs:restriction base="xs:normalizedString">
<xs:pattern value="\s*(\S(\r|\n|.){0,254}\s*)?"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="InAppProductDescription">
<xs:annotation>
<xs:documentation>
Root element of InAppProductDescription document type. For content guidance on all required and optional fields in the product description, see http://go.microsoft.com/fwlink/p/?linkid=221134.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:all>
<!-- COMMON section-->
<xs:element name="Title" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:annotation>
<xs:documentation>
Required, the title for the add-on listing. May not exceed 100 characters.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="tns:TitleString">
<xs:attributeGroup ref="tns:LocIdAttribute"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Description" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:annotation>
<xs:documentation>
Optional, the description for the add-on listing. May not exceed 200 characters.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="tns:DescriptionString">
<xs:attributeGroup ref="tns:LocIdAttribute"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="Icon" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:annotation>
<xs:documentation>
Optional, the icon for the listing.
The icon should be a 300 x 300 png file.
</xs:documentation>
</xs:annotation>
<xs:attributeGroup ref="tns:IconAttribute"/>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="language" type="xs:language" use="required" />
<xs:attribute name="Release" type="tns:ReleaseString" use="required" />
<xs:attribute name="FallbackLanguage" type="tns:LangCodeString" />
</xs:complexType>
</xs:element>
</xs:schema>