summaryrefslogtreecommitdiffhomepage
path: root/lib/schema
diff options
context:
space:
mode:
authorRandy Morgan <[email protected]>2012-04-01 11:58:09 +0900
committerRandy Morgan <[email protected]>2012-04-01 11:58:09 +0900
commit1529fce32449a8454208fded20d83c9ceca810e0 (patch)
tree02f722182fea58a51b8c0a5433221b3a677e80e4 /lib/schema
parent22a341841f191a5aa00e87b1f166b4f25cc67f0a (diff)
downloadcaxlsx-1529fce32449a8454208fded20d83c9ceca810e0.tar.gz
caxlsx-1529fce32449a8454208fded20d83c9ceca810e0.zip
rebuild all serialization to use string concatenation instead of nokogiri.
Diffstat (limited to 'lib/schema')
-rw-r--r--lib/schema/dc.xsd10
-rw-r--r--lib/schema/dcmitype.xsd8
-rw-r--r--lib/schema/dcterms.xsd30
-rw-r--r--lib/schema/opc-coreProperties.xsd8
-rw-r--r--lib/schema/xml.xsd15
5 files changed, 38 insertions, 33 deletions
diff --git a/lib/schema/dc.xsd b/lib/schema/dc.xsd
index b8315e7e..fffd1522 100644
--- a/lib/schema/dc.xsd
+++ b/lib/schema/dc.xsd
@@ -12,7 +12,7 @@
Created 2003-04-02
- Created by
+ Created by
Tim Cole ([email protected])
Tom Habing ([email protected])
@@ -23,14 +23,14 @@
This schema declares XML elements for the 15 DC elements from the
http://purl.org/dc/elements/1.1/ namespace.
- It defines a complexType SimpleLiteral which permits mixed content
+ It defines a complexType SimpleLiteral which permits mixed content
and makes the xml:lang attribute available. It disallows child elements by
use of minOcccurs/maxOccurs.
However, this complexType does permit the derivation of other complexTypes
which would permit child elements.
- All elements are declared as substitutable for the abstract element any,
+ All elements are declared as substitutable for the abstract element any,
which means that the default type for all elements is dc:SimpleLiteral.
</xs:documentation>
@@ -49,7 +49,7 @@
It permits text content only with optional
xml:lang attribute.
Text is allowed because mixed="true", but sub-elements
- are disallowed because minOccurs="0" and maxOccurs="0"
+ are disallowed because minOccurs="0" and maxOccurs="0"
are on the xs:any tag.
This complexType allows for restriction or extension permitting
@@ -89,7 +89,7 @@
<xs:annotation>
<xs:documentation xml:lang="en">
This group is included as a convenience for schema authors
- who need to refer to all the elements in the
+ who need to refer to all the elements in the
http://purl.org/dc/elements/1.1/ namespace.
</xs:documentation>
</xs:annotation>
diff --git a/lib/schema/dcmitype.xsd b/lib/schema/dcmitype.xsd
index 54d9da00..69fcb5bd 100644
--- a/lib/schema/dcmitype.xsd
+++ b/lib/schema/dcmitype.xsd
@@ -5,6 +5,8 @@
elementFormDefault="qualified"
attributeFormDefault="unqualified">
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
+
<xs:annotation>
<xs:documentation xml:lang="en">
DCMI Type Vocabulary XML Schema
@@ -12,7 +14,7 @@
Created 2003-04-02
- Created by
+ Created by
Tim Cole ([email protected])
Tom Habing ([email protected])
@@ -24,7 +26,7 @@
the allowable values for the DCMI Type Vocabulary.
</xs:documentation>
-
+
</xs:annotation>
@@ -43,7 +45,7 @@
<xs:enumeration value="Text"/>
<xs:enumeration value="PhysicalObject"/>
</xs:restriction>
- </xs:simpleType>
+ </xs:simpleType>
</xs:union>
</xs:simpleType>
diff --git a/lib/schema/dcterms.xsd b/lib/schema/dcterms.xsd
index 055a6edf..da22580e 100644
--- a/lib/schema/dcterms.xsd
+++ b/lib/schema/dcterms.xsd
@@ -14,7 +14,7 @@
Created 2003-04-02
- Created by
+ Created by
Tim Cole ([email protected])
Tom Habing ([email protected])
@@ -24,7 +24,7 @@
This schema declares XML elements for the DC elements and
DC element refinements from the http://purl.org/dc/terms/ namespace.
-
+
It reuses the complexType dc:SimpleLiteral, imported from the dc.xsd
schema, which permits simple element content, and makes the xml:lang
attribute available.
@@ -32,22 +32,22 @@
This complexType permits the derivation of other complexTypes
which would permit child elements.
- DC elements are declared as substitutable for the abstract element dc:any, and
- DC element refinements are defined as substitutable for the base elements
+ DC elements are declared as substitutable for the abstract element dc:any, and
+ DC element refinements are defined as substitutable for the base elements
which they refine.
- This means that the default type for all XML elements (i.e. all DC elements and
+ This means that the default type for all XML elements (i.e. all DC elements and
element refinements) is dc:SimpleLiteral.
Encoding schemes are defined as complexTypes which are restrictions
- of the dc:SimpleLiteral complexType. These complexTypes restrict
+ of the dc:SimpleLiteral complexType. These complexTypes restrict
values to an appropriates syntax or format using data typing,
regular expressions, or enumerated lists.
-
- In order to specify one of these encodings an xsi:type attribute must
+
+ In order to specify one of these encodings an xsi:type attribute must
be used in the instance document.
- Also, note that one shortcoming of this approach is that any type can be
+ Also, note that one shortcoming of this approach is that any type can be
applied to any of the elements or refinements. There is no convenient way
to restrict types to specific elements using this approach.
@@ -184,7 +184,7 @@
<xs:attribute ref="xml:lang" use="prohibited"/>
</xs:restriction>
</xs:simpleContent>
- </xs:complexType>
+ </xs:complexType>
<xs:complexType name="DCMIType">
<xs:simpleContent>
@@ -217,7 +217,7 @@
<xs:attribute ref="xml:lang" use="prohibited"/>
</xs:restriction>
</xs:simpleContent>
- </xs:complexType>
+ </xs:complexType>
<xs:complexType name="ISO639-2">
<xs:simpleContent>
@@ -300,9 +300,9 @@
<xs:annotation>
<xs:documentation xml:lang="en">
This group is included as a convenience for schema authors
- who need to refer to all the DC elements and element refinements
- in the http://purl.org/dc/elements/1.1/ and
- http://purl.org/dc/terms namespaces.
+ who need to refer to all the DC elements and element refinements
+ in the http://purl.org/dc/elements/1.1/ and
+ http://purl.org/dc/terms namespaces.
N.B. Refinements available via substitution groups.
</xs:documentation>
</xs:annotation>
@@ -312,7 +312,7 @@
<xs:element ref="dc:any" />
</xs:choice>
</xs:sequence>
- </xs:group>
+ </xs:group>
<xs:complexType name="elementOrRefinementContainer">
<xs:annotation>
diff --git a/lib/schema/opc-coreProperties.xsd b/lib/schema/opc-coreProperties.xsd
index a2d6cdac..2b7d5c1c 100644
--- a/lib/schema/opc-coreProperties.xsd
+++ b/lib/schema/opc-coreProperties.xsd
@@ -2,13 +2,17 @@
<xs:schema targetNamespace="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
xmlns="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:dc="http://purl.org/dc/elements/1.1/"
- xmlns:dcterms="http://purl.org/dc/terms/" elementFormDefault="qualified" blockDefault="#all">
+ xmlns:dcterms="http://purl.org/dc/terms/"
+ elementFormDefault="qualified" blockDefault="#all">
<xs:import namespace="http://purl.org/dc/elements/1.1/"
schemaLocation="dc.xsd"/>
+
<xs:import namespace="http://purl.org/dc/terms/"
schemaLocation="dcterms.xsd"/>
- <xs:import id="xml" namespace="http://www.w3.org/XML/1998/namespace"/>
+
+ <xs:import namespace="http://www.w3.org/XML/1998/namespace"
+ schemaLocation="xml.xsd"/>
<xs:element name="coreProperties" type="CT_CoreProperties"/>
diff --git a/lib/schema/xml.xsd b/lib/schema/xml.xsd
index d662b423..4f5ecc8b 100644
--- a/lib/schema/xml.xsd
+++ b/lib/schema/xml.xsd
@@ -1,6 +1,5 @@
<?xml version='1.0'?>
-<!DOCTYPE xs:schema PUBLIC "-//W3C//DTD XMLSCHEMA 200102//EN" "XMLSchema.dtd" >
-<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:annotation>
<xs:documentation>
@@ -8,7 +7,7 @@
http://www.w3.org/TR/REC-xml for information about this namespace.
This schema document describes the XML namespace, in a form
- suitable for import by other schema documents.
+ suitable for import by other schema documents.
Note that local names in this namespace are intended to be defined
only by the World Wide Web Consortium or its subgroups. The
@@ -26,16 +25,16 @@
is a language code for the natural language of the content of
any element; its value is inherited. This name is reserved
by virtue of its definition in the XML specification.
-
+
space (as an attribute name): denotes an attribute whose
value is a keyword indicating what whitespace processing
discipline is intended for the content of the element; its
value is inherited. This name is reserved by virtue of its
definition in the XML specification.
- Father (in any context at all): denotes Jon Bosak, the chair of
- the original XML Working Group. This name is reserved by
- the following decision of the W3C XML Plenary and
+ Father (in any context at all): denotes Jon Bosak, the chair of
+ the original XML Working Group. This name is reserved by
+ the following decision of the W3C XML Plenary and
XML Coordination groups:
In appreciation for his vision, leadership and dedication
@@ -64,7 +63,7 @@
&lt;type . . .>
. . .
&lt;attributeGroup ref="xml:specialAttrs"/>
-
+
will define a type which will schema-validate an instance
element with any of those attributes</xs:documentation>
</xs:annotation>