source: trunk/docx4j/xsd/xmlPackage.xsd @ 533

Revision 533, 4.9 KB checked in by jharrop, 4 years ago (diff)
Line 
1<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2<xsd:schema
3        targetNamespace="http://schemas.microsoft.com/office/2006/xmlPackage"
4        xmlns="http://schemas.microsoft.com/office/2006/xmlPackage"
5        xmlns:xsd="http://www.w3.org/2001/XMLSchema" blockDefault="#all"
6        elementFormDefault="qualified" attributeFormDefault="qualified"
7        xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
8        xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc" jaxb:version="2.1">
9
10        <!--
11               
12                sh ~/jaxb-ri-20071219/bin/xjc.sh xmlPackage.xsd -d ~/workspace/docx4j/src/main/java/ -no-header -target 2.0
13               
14        -->
15
16        <xsd:annotation>
17                <xsd:documentation>
18                        Schema for flat XML documents.
19                </xsd:documentation>
20                <xsd:appinfo>
21                        <xsd:appinfo>
22                                <jaxb:globalBindings></jaxb:globalBindings>
23                        </xsd:appinfo>
24                        <jaxb:schemaBindings>
25                                <jaxb:package name="org.docx4j.xmlPackage" />
26                        </jaxb:schemaBindings>
27                </xsd:appinfo>
28
29        </xsd:annotation>
30
31        <xsd:element name="package" type="CT_Package" />
32
33        <xsd:complexType name="CT_Package">
34                <xsd:annotation>
35                        <xsd:appinfo>
36                                <jaxb:class name="Package" />
37                        </xsd:appinfo>
38                </xsd:annotation>
39                <xsd:sequence>
40                        <xsd:element name="part" type="CT_Part" minOccurs="0"
41                                maxOccurs="unbounded">
42                                <xsd:annotation>
43                                        <xsd:documentation>
44                                                Represents a part of a package using open
45                                                package conventions.
46                                        </xsd:documentation>
47                                </xsd:annotation>
48                        </xsd:element>
49                </xsd:sequence>
50        </xsd:complexType>
51
52        <xsd:complexType name="CT_Part">
53                <xsd:annotation>
54                        <xsd:documentation>
55                                Defines a part of a package using open package
56                                conventions. A part with contentType containing xml
57                                requires xmlData. All other contentType values use
58                                binaryData.
59                        </xsd:documentation>
60                        <xsd:appinfo>
61                                <jaxb:class name="Part" />
62                        </xsd:appinfo>
63                </xsd:annotation>
64                <xsd:choice minOccurs="1" maxOccurs="1">
65                        <xsd:element name="xmlData" type="CT_XmlData">
66                                <xsd:annotation>
67                                        <xsd:documentation>
68                                                Specifies the contents of a part containing XML
69                                                data.
70                                        </xsd:documentation>
71                                </xsd:annotation>
72                        </xsd:element>
73                        <xsd:element name="binaryData" type="xsd:base64Binary">
74                                <xsd:annotation>
75                                        <xsd:documentation>
76                                                Specifies the contents of a part containing
77                                                binary base 64 encoded non-XML data.
78                                        </xsd:documentation>
79                                </xsd:annotation>
80                        </xsd:element>
81                </xsd:choice>
82                <xsd:attribute name="name" type="xsd:string" use="required">
83                        <xsd:annotation>
84                                <xsd:documentation>
85                                        Specifies the name including the path of a part
86                                </xsd:documentation>
87                        </xsd:annotation>
88                </xsd:attribute>
89                <xsd:attribute name="contentType">
90                        <xsd:simpleType>
91                                <xsd:annotation>
92                                        <xsd:documentation>
93                                                Specifies the content type of a part
94                                        </xsd:documentation>
95                                </xsd:annotation>
96                                <xsd:restriction base="xsd:string">
97                                        <xsd:pattern value="text/xml" />
98                                        <xsd:pattern value="application/xml" />
99                                        <xsd:pattern value="application/.+\+xml" />
100                                        <xsd:pattern value=".+" />
101                                </xsd:restriction>
102                        </xsd:simpleType>
103                </xsd:attribute>
104                <xsd:attribute name="compression" default="deflateSuperFast"
105                        use="optional">
106                        <xsd:simpleType>
107                                <xsd:annotation>
108                                        <xsd:documentation>
109                                                Specifies the compression type of a part
110                                        </xsd:documentation>
111                                </xsd:annotation>
112                                <xsd:restriction base="xsd:string">
113                                        <xsd:enumeration value="store" />
114                                        <xsd:enumeration value="deflateSuperFast" />
115                                        <xsd:enumeration value="deflateFast" />
116                                        <xsd:enumeration value="deflateNormal" />
117                                        <xsd:enumeration value="deflateMaximum" />
118                                </xsd:restriction>
119                        </xsd:simpleType>
120                </xsd:attribute>
121                <xsd:attribute name="padding" type="xsd:unsignedInt" default="0"
122                        use="optional">
123                        <xsd:annotation>
124                                <xsd:documentation>
125                                        Specifies the default padding size in bytes of a
126                                        part
127                                </xsd:documentation>
128                        </xsd:annotation>
129                </xsd:attribute>
130        </xsd:complexType>
131
132
133
134        <xsd:complexType name="CT_XmlData">
135                <xsd:annotation>
136                        <xsd:documentation>
137                                Specifies the details of an xml part.
138                        </xsd:documentation>
139                        <xsd:appinfo>
140                                <jaxb:class name="XmlData" />
141                        </xsd:appinfo>
142                </xsd:annotation>
143                <xsd:sequence>
144                        <xsd:any processContents="skip" />
145                </xsd:sequence>
146                <xsd:attribute name="originalXmlEncoding" type="xsd:string"
147                        default="UTF-8" use="optional">
148                        <xsd:annotation>
149                                <xsd:documentation>
150                                        Specifies the original XML encoding of an XML part
151                                </xsd:documentation>
152                        </xsd:annotation>
153                </xsd:attribute>
154                <xsd:attribute name="originalXmlVersion" type="xsd:string"
155                        default="1.0" use="optional">
156                        <xsd:annotation>
157                                <xsd:documentation>
158                                        Specifies the original XML version of an XML part
159                                </xsd:documentation>
160                        </xsd:annotation>
161                </xsd:attribute>
162                <xsd:attribute name="originalXmlStandalone" type="xsd:string"
163                        default="yes" use="optional">
164                        <xsd:annotation>
165                                <xsd:documentation>
166                                        Specifies the original XML standalone attribute of
167                                        an XML part
168                                </xsd:documentation>
169                        </xsd:annotation>
170                </xsd:attribute>
171        </xsd:complexType>
172</xsd:schema>
Note: See TracBrowser for help on using the repository browser.