diff options
| author | Randy Morgan <[email protected]> | 2011-11-20 23:22:04 +0900 |
|---|---|---|
| committer | Randy Morgan <[email protected]> | 2011-11-20 23:22:04 +0900 |
| commit | e53f04284618713b0a90b7a691425c380e829476 (patch) | |
| tree | 801fea138160f9af426d62bf94ad5bf97123ece9 /lib/schema/opc-contentTypes.xsd | |
| download | caxlsx-e53f04284618713b0a90b7a691425c380e829476.tar.gz caxlsx-e53f04284618713b0a90b7a691425c380e829476.zip | |
first commit
Diffstat (limited to 'lib/schema/opc-contentTypes.xsd')
| -rw-r--r-- | lib/schema/opc-contentTypes.xsd | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/lib/schema/opc-contentTypes.xsd b/lib/schema/opc-contentTypes.xsd new file mode 100644 index 00000000..e4c5160e --- /dev/null +++ b/lib/schema/opc-contentTypes.xsd @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<xs:schema xmlns="http://schemas.openxmlformats.org/package/2006/content-types"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ targetNamespace="http://schemas.openxmlformats.org/package/2006/content-types"
+ elementFormDefault="qualified" attributeFormDefault="unqualified" blockDefault="#all">
+
+ <xs:element name="Types" type="CT_Types"/>
+ <xs:element name="Default" type="CT_Default"/>
+ <xs:element name="Override" type="CT_Override"/>
+
+ <xs:complexType name="CT_Types">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="Default"/>
+ <xs:element ref="Override"/>
+ </xs:choice>
+ </xs:complexType>
+
+ <xs:complexType name="CT_Default">
+ <xs:attribute name="Extension" type="ST_Extension" use="required"/>
+ <xs:attribute name="ContentType" type="ST_ContentType" use="required"/>
+ </xs:complexType>
+
+ <xs:complexType name="CT_Override">
+ <xs:attribute name="ContentType" type="ST_ContentType" use="required"/>
+ <xs:attribute name="PartName" type="xs:anyURI" use="required"/>
+ </xs:complexType>
+
+ <xs:simpleType name="ST_ContentType">
+ <xs:restriction base="xs:string">
+ <xs:pattern
+ value="(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))/((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))((\s+)*;(\s+)*(((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+))=((([\p{IsBasicLatin}-[\p{Cc}\(\)<>@,;:\\"/\[\]\?=\{\}\s\t]])+)|("(([\p{IsLatin-1Supplement}\p{IsBasicLatin}-[\p{Cc}"\n\r]]|(\s+))|(\\[\p{IsBasicLatin}]))*"))))*)"
+ />
+ </xs:restriction>
+ </xs:simpleType>
+
+ <xs:simpleType name="ST_Extension">
+ <xs:restriction base="xs:string">
+ <xs:pattern
+ value="([!$&'\(\)\*\+,:=]|(%[0-9a-fA-F][0-9a-fA-F])|[:@]|[a-zA-Z0-9\-_~])+"/>
+ </xs:restriction>
+ </xs:simpleType>
+</xs:schema>
|
