File: SimpleImport.xsd

package info (click to toggle)
office2003-schemas 1.0%2Bds-1
  • links: PTS, VCS
  • area: non-free
  • in suites: bookworm, forky, sid, trixie
  • size: 42,304 kB
  • sloc: javascript: 2,429; makefile: 29
file content (196 lines) | stat: -rw-r--r-- 8,819 bytes parent folder | download | duplicates (2)
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?xml version="1.0" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://schemas.microsoft.com/office/onenote/2004/import"
	xmlns="http://schemas.microsoft.com/office/onenote/2004/import" elementFormDefault="qualified">
	<xsd:annotation>
		<xsd:documentation>
			Permission to copy, display and distribute the contents of this document (the �Specification�), in any medium for any purpose without fee or royalty is hereby granted, provided that you include the following notice on ALL copies of the Specification, or portions thereof, that you make:
			Copyright (c) Microsoft Corporation.  All rights reserved.  Permission to copy, display and distribute this document is available at:  http://msdn.microsoft.com/library/en-us/odcXMLRef/html/odcXMLRefLegalNotice.asp?frame=true.  
			No right to create modifications or derivatives of this Specification is granted herein.
			There is a separate patent license available to parties interested in implementing software programs that can read and write files that conform to the Specification.  This patent license is available at this location:  http://www.microsoft.com/mscorp/ip/format/xmlpatentlicense.asp.
			THE SPECIFICATION IS PROVIDED "AS IS" AND MICROSOFT MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, OR TITLE; THAT THE CONTENTS OF THE SPECIFICATION ARE SUITABLE FOR ANY PURPOSE; NOR THAT THE IMPLEMENTATION OF SUCH CONTENTS WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.
			MICROSOFT WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR RELATING TO ANY USE OR DISTRIBUTION OF THE SPECIFICATION.
			The name and trademarks of Microsoft may NOT be used in any manner, including advertising or publicity pertaining to the Specification or its contents without specific, written prior permission. Title to copyright in the Specification will at all times remain with Microsoft.
			No other rights are granted by implication, estoppel or otherwise.
		</xsd:documentation>
	</xsd:annotation>
	<!-- Root element: OneNote. -->
	<xsd:element name="Import">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Top level element. Contains any number of verbs.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:choice maxOccurs="unbounded">
					<xsd:element name="EnsurePage" type="EnsurePageVerb" />
					<xsd:element name="PlaceObjects" type="PlaceObjectsVerb" />
				</xsd:choice>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<!-- EnsurePage Action. -->
	<xsd:complexType name="EnsurePageVerb">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Ensures the existence of a section or page.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:attribute name="path" type="xsd:string" use="required" />
		<xsd:attribute name="guid" type="GUID" use="required" />
		<xsd:attribute name="title" type="xsd:string" />
		<xsd:attribute name="date" type="xsd:dateTime" />
		<xsd:attribute name="RTL" type="xsd:boolean" default="false" />
		<xsd:attribute name="insertAfter" type="GUID" />
	</xsd:complexType>
	<!-- PlaceObjects Action -->
	<xsd:complexType name="PlaceObjectsVerb">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Places top level page objecs on the page, or replaces them if they
				already exist.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="Object" maxOccurs="unbounded">
				<xsd:complexType>
					<xsd:choice>
						<xsd:element name="Delete" />
						<xsd:sequence>
							<xsd:element name="Position">
								<xsd:complexType>
									<!-- X and Y coordinates are represented as points. -->
									<xsd:attribute name="x" type="xsd:decimal" use="required" />
									<xsd:attribute name="y" type="xsd:decimal" use="required" />
								</xsd:complexType>
							</xsd:element>
							<xsd:choice>
								<xsd:element name="Image">
									<xsd:complexType>
										<xsd:complexContent>
											<xsd:extension base="ImageContent">
												<xsd:attribute name="backgroundImage" type="xsd:boolean" default="false" />
												<!-- Width and Height are also expressed in points. -->
												<xsd:attribute name="width" type="PositiveDecimal" />
												<xsd:attribute name="height" type="PositiveDecimal" />
											</xsd:extension>
										</xsd:complexContent>
									</xsd:complexType>
								</xsd:element>
								<xsd:element name="Ink">
									<xsd:complexType>
										<xsd:complexContent>
											<xsd:extension base="InkContent">
												<xsd:attribute name="width" type="PositiveDecimal" />
												<xsd:attribute name="height" type="PositiveDecimal" />
											</xsd:extension>
										</xsd:complexContent>
									</xsd:complexType>
								</xsd:element>
								<xsd:element name="Outline">
									<xsd:complexType>
										<xsd:sequence>
											<xsd:choice maxOccurs="unbounded">
												<xsd:element name="Image">
													<xsd:complexType>
														<xsd:complexContent>
															<xsd:extension base="ImageContent">
																<xsd:attribute name="align">
																	<xsd:simpleType>
																		<xsd:restriction base="xsd:string">
																			<xsd:enumeration value="left" />
																			<xsd:enumeration value="center" />
																			<xsd:enumeration value="right" />
																		</xsd:restriction>
																	</xsd:simpleType>
																</xsd:attribute>
															</xsd:extension>
														</xsd:complexContent>
													</xsd:complexType>
												</xsd:element>
												<xsd:element name="Ink" type="InkContent" />
												<xsd:element name="Html" type="HtmlContent" />
											</xsd:choice>
										</xsd:sequence>
										<xsd:attribute name="width" type="PositiveDecimal" />
									</xsd:complexType>
								</xsd:element>
							</xsd:choice>
						</xsd:sequence>
					</xsd:choice>
					<xsd:attribute name="guid" type="GUID" use="required" />
				</xsd:complexType>
			</xsd:element>
		</xsd:sequence>
		<xsd:attribute name="pagePath" type="xsd:string" use="required" />
		<xsd:attribute name="pageGuid" type="GUID" use="required" />
	</xsd:complexType>
	<!-- Common types. -->
	<xsd:simpleType name="GUID">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				The representation of a GUID, generally the id of an element.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:string">
			<xsd:pattern value="\{[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\}" />
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="PositiveDecimal">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Positive number.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:restriction base="xsd:decimal">
			<xsd:minInclusive value="0.00" />
			<xsd:maxInclusive value="1000000.00" />
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:complexType name="HtmlContent">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Contains the html data to be imported.

				If the html is included via a Data node, we expect it to be wrapped in
				a CDATA marker.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:choice>
			<xsd:element name="File" type="FilePath" />
			<xsd:element name="Data" type="xsd:string" />
		</xsd:choice>
	</xsd:complexType>
	<xsd:complexType name="InkContent">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Contains the ink to be imported.  The data is either referenced in a
				file or is included inlined, Base64 encoded.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:choice>
			<xsd:element name="File" type="FilePath" />
			<xsd:element name="Data" type="xsd:base64Binary" />
		</xsd:choice>
	</xsd:complexType>
	<xsd:complexType name="ImageContent">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Contains the image to be imported.  The data is either referenced in a
				file or is included inlined, Base64 encoded.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:choice>
			<xsd:element name="File" type="FilePath" />
			<xsd:element name="Data" type="xsd:base64Binary" />
		</xsd:choice>
	</xsd:complexType>
	<xsd:complexType name="FilePath">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				Represents the path to a file.
			</xsd:documentation>
		</xsd:annotation>
		<xsd:attribute name="path" use="required" />
	</xsd:complexType>
</xsd:schema>