cirneco 0.9.16 → 0.9.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile.lock +70 -67
  3. data/cirneco.gemspec +3 -3
  4. data/lib/cirneco/data_center.rb +0 -2
  5. data/lib/cirneco/doi.rb +2 -90
  6. data/lib/cirneco/media.rb +1 -3
  7. data/lib/cirneco/metadata.rb +0 -2
  8. data/lib/cirneco/utils.rb +3 -3
  9. data/lib/cirneco/version.rb +1 -1
  10. data/lib/cirneco/work.rb +0 -2
  11. data/spec/api_spec.rb +8 -7
  12. data/spec/doi_spec.rb +4 -63
  13. data/spec/fixtures/vcr_cassettes/Cirneco_Work/media/includes_media.yml +42 -56
  14. data/spec/fixtures/vcr_cassettes/Cirneco_Work/schema/BlogPosting.yml +42 -56
  15. data/spec/utils_spec.rb +9 -10
  16. data/spec/work_spec.rb +2 -2
  17. metadata +10 -93
  18. data/data/authors.yml +0 -0
  19. data/data/references.yaml +0 -0
  20. data/data/site.yml +0 -0
  21. data/lib/cirneco/file_utils.rb +0 -371
  22. data/resources/jats-1.1/JATS-journalpublishing1-elements.xsd +0 -8608
  23. data/resources/jats-1.1/JATS-journalpublishing1-mathml3-elements.xsd +0 -8608
  24. data/resources/jats-1.1/JATS-journalpublishing1-mathml3.xsd +0 -48
  25. data/resources/jats-1.1/JATS-journalpublishing1.xsd +0 -59
  26. data/resources/jats-1.1/module-ali.xsd +0 -46
  27. data/resources/jats-1.1/standard-modules/mathml2/common/common-attribs.xsd +0 -44
  28. data/resources/jats-1.1/standard-modules/mathml2/common/math.xsd +0 -126
  29. data/resources/jats-1.1/standard-modules/mathml2/common/xlink-href.xsd +0 -20
  30. data/resources/jats-1.1/standard-modules/mathml2/content/arith.xsd +0 -90
  31. data/resources/jats-1.1/standard-modules/mathml2/content/calculus.xsd +0 -146
  32. data/resources/jats-1.1/standard-modules/mathml2/content/common-attrib.xsd +0 -30
  33. data/resources/jats-1.1/standard-modules/mathml2/content/constants.xsd +0 -83
  34. data/resources/jats-1.1/standard-modules/mathml2/content/constructs.xsd +0 -260
  35. data/resources/jats-1.1/standard-modules/mathml2/content/elementary-functions.xsd +0 -117
  36. data/resources/jats-1.1/standard-modules/mathml2/content/functions.xsd +0 -73
  37. data/resources/jats-1.1/standard-modules/mathml2/content/linear-algebra.xsd +0 -173
  38. data/resources/jats-1.1/standard-modules/mathml2/content/logic.xsd +0 -53
  39. data/resources/jats-1.1/standard-modules/mathml2/content/relations.xsd +0 -55
  40. data/resources/jats-1.1/standard-modules/mathml2/content/semantics.xsd +0 -85
  41. data/resources/jats-1.1/standard-modules/mathml2/content/sets.xsd +0 -236
  42. data/resources/jats-1.1/standard-modules/mathml2/content/statistics.xsd +0 -136
  43. data/resources/jats-1.1/standard-modules/mathml2/content/tokens.xsd +0 -120
  44. data/resources/jats-1.1/standard-modules/mathml2/content/vector-calculus.xsd +0 -88
  45. data/resources/jats-1.1/standard-modules/mathml2/content/zzz.tokens.xsd.from.zip +0 -120
  46. data/resources/jats-1.1/standard-modules/mathml2/mathml2.xsd +0 -59
  47. data/resources/jats-1.1/standard-modules/mathml2/presentation/action.xsd +0 -44
  48. data/resources/jats-1.1/standard-modules/mathml2/presentation/characters.xsd +0 -37
  49. data/resources/jats-1.1/standard-modules/mathml2/presentation/common-attribs.xsd +0 -113
  50. data/resources/jats-1.1/standard-modules/mathml2/presentation/common-types.xsd +0 -103
  51. data/resources/jats-1.1/standard-modules/mathml2/presentation/error.xsd +0 -40
  52. data/resources/jats-1.1/standard-modules/mathml2/presentation/layout.xsd +0 -195
  53. data/resources/jats-1.1/standard-modules/mathml2/presentation/scripts.xsd +0 -186
  54. data/resources/jats-1.1/standard-modules/mathml2/presentation/space.xsd +0 -52
  55. data/resources/jats-1.1/standard-modules/mathml2/presentation/style.xsd +0 -69
  56. data/resources/jats-1.1/standard-modules/mathml2/presentation/table.xsd +0 -216
  57. data/resources/jats-1.1/standard-modules/mathml2/presentation/tokens.xsd +0 -124
  58. data/resources/jats-1.1/standard-modules/xlink.xsd +0 -100
  59. data/resources/jats-1.1/standard-modules/xml.xsd +0 -287
  60. data/spec/file_utils_spec.rb +0 -203
  61. data/spec/fixtures/apa.csl +0 -621
  62. data/spec/fixtures/authors.yml +0 -19
  63. data/spec/fixtures/cool-dois/index.html +0 -404
  64. data/spec/fixtures/cool-dois-minted/index.html +0 -359
  65. data/spec/fixtures/cool-dois-minted.html.md +0 -99
  66. data/spec/fixtures/cool-dois-missing-metadata/index.html +0 -356
  67. data/spec/fixtures/cool-dois-no-accession-number.html.md +0 -97
  68. data/spec/fixtures/cool-dois-no-json-ld/index.html +0 -352
  69. data/spec/fixtures/cool-dois.html.md +0 -100
  70. data/spec/fixtures/cool-dois.yml +0 -10
  71. data/spec/fixtures/index-minted.html +0 -271
  72. data/spec/fixtures/index.html +0 -320
  73. data/spec/fixtures/index.html.erb +0 -42
  74. data/spec/fixtures/references.bib +0 -506
  75. data/spec/fixtures/references.yaml +0 -1060
  76. data/spec/fixtures/site.yml +0 -8
  77. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/jats/should_generate_jats_for_all_urls.yml +0 -38
  78. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_hide_for_all_urls.yml +0 -38
  79. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_and_hide_for_all_urls.yml +0 -38
  80. data/spec/fixtures/vcr_cassettes/Cirneco_DataCenter/mint_and_hide_DOIs/should_mint_for_all_urls.yml +0 -38
  81. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/jats/writes_jats_for_list_of_urls.yml +0 -38
  82. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/hides_dois_for_list_of_urls.yml +0 -38
  83. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_and_hides_dois_for_list_of_urls.yml +0 -38
  84. data/spec/fixtures/vcr_cassettes/Cirneco_Doi/mint_and_hide_DOIs/mints_dois_for_list_of_urls.yml +0 -38
  85. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_all_dois.yml +0 -121
  86. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi.yml +0 -121
  87. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/should_get_doi_not_found.yml +0 -121
  88. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/get/username_missing.yml +0 -121
  89. data/spec/fixtures/vcr_cassettes/Cirneco_Work/DOI_API/put/should_put_doi.yml +0 -121
  90. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/get/should_get_media.yml +0 -121
  91. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Media_API/post/should_post_media.yml +0 -121
  92. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/delete/should_delete_metadata.yml +0 -121
  93. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/get/should_get_metadata.yml +0 -121
  94. data/spec/fixtures/vcr_cassettes/Cirneco_Work/Metadata_API/post/should_post_metadata.yml +0 -121
@@ -1,113 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
-
3
- <xs:schema
4
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
- xmlns="http://www.w3.org/1998/Math/MathML"
6
- targetNamespace="http://www.w3.org/1998/Math/MathML"
7
- elementFormDefault="qualified"
8
- >
9
-
10
- <xs:annotation>
11
- <xs:documentation>
12
- This schema module defines sets of attributes common to several elements
13
- of presentation MathML.
14
- Author: St&#233;phane Dalmas, INRIA.
15
- </xs:documentation>
16
- </xs:annotation>
17
-
18
- <!-- The mathematics style attributes. These attributes are valid on all
19
- presentation token elements except "mspace" and "mglyph", and on no
20
- other elements except "mstyle". -->
21
-
22
- <xs:attributeGroup name="Token-style.attrib">
23
- <xs:attribute name="mathvariant">
24
- <xs:simpleType>
25
- <xs:restriction base="xs:string">
26
- <xs:enumeration value="normal"/>
27
- <xs:enumeration value="bold"/>
28
- <xs:enumeration value="italic"/>
29
- <xs:enumeration value="bold-italic"/>
30
- <xs:enumeration value="double-struck"/>
31
- <xs:enumeration value="bold-fraktur"/>
32
- <xs:enumeration value="script"/>
33
- <xs:enumeration value="bold-script"/>
34
- <xs:enumeration value="fraktur"/>
35
- <xs:enumeration value="sans-serif"/>
36
- <xs:enumeration value="bold-sans-serif"/>
37
- <xs:enumeration value="sans-serif-italic"/>
38
- <xs:enumeration value="sans-serif-bold-italic"/>
39
- <xs:enumeration value="monospace"/>
40
- </xs:restriction>
41
- </xs:simpleType>
42
- </xs:attribute>
43
- <xs:attribute name="mathsize">
44
- <xs:simpleType>
45
- <xs:union memberTypes="simple-size length-with-unit"/>
46
- </xs:simpleType>
47
- </xs:attribute>
48
- <!-- For both of the following attributes the types should be
49
- more restricted -->
50
- <xs:attribute name="mathcolor" type="xs:string"/>
51
- <xs:attribute name="mathbackground" type="xs:string"/>
52
- </xs:attributeGroup>
53
-
54
- <!-- These operators are all related to operators. They are valid on "mo"
55
- and "mstyle". -->
56
-
57
- <xs:attributeGroup name="Operator.attrib">
58
- <!-- this attribute value is normally inferred from the position of
59
- the operator in its "<mrow"> -->
60
- <xs:attribute name="form">
61
- <xs:simpleType>
62
- <xs:restriction base="xs:string">
63
- <xs:enumeration value="prefix"/>
64
- <xs:enumeration value="infix"/>
65
- <xs:enumeration value="postfix"/>
66
- </xs:restriction>
67
- </xs:simpleType>
68
- </xs:attribute>
69
- <!-- set by dictionnary, else it is "thickmathspace" -->
70
- <xs:attribute name="lspace">
71
- <xs:simpleType>
72
- <xs:union memberTypes="length-with-unit named-space"/>
73
- </xs:simpleType>
74
- </xs:attribute>
75
- <!-- set by dictionnary, else it is "thickmathspace" -->
76
- <xs:attribute name="rspace">
77
- <xs:simpleType>
78
- <xs:union memberTypes="length-with-unit named-space"/>
79
- </xs:simpleType>
80
- </xs:attribute>
81
- <!-- set by dictionnary, else it is "false" -->
82
- <xs:attribute name="fence" type="xs:boolean"/>
83
- <!-- set by dictionnary, else it is "false" -->
84
- <xs:attribute name="separator" type="xs:boolean"/>
85
- <!-- set by dictionnary, else it is "false" -->
86
- <xs:attribute name="stretchy" type="xs:boolean"/>
87
- <!-- set by dictionnary, else it is "true" -->
88
- <xs:attribute name="symmetric" type="xs:boolean"/>
89
- <!-- set by dictionnary, else it is "false" -->
90
- <xs:attribute name="movablelimits" type="xs:boolean"/>
91
- <!-- set by dictionnary, else it is "false" -->
92
- <xs:attribute name="accent" type="xs:boolean"/>
93
- <!-- set by dictionnary, else it is "false" -->
94
- <xs:attribute name="largeop" type="xs:boolean"/>
95
- <xs:attribute name="minsize">
96
- <xs:simpleType>
97
- <xs:union memberTypes="length-with-unit named-space"/>
98
- </xs:simpleType>
99
- </xs:attribute>
100
- <xs:attribute name="maxsize">
101
- <xs:simpleType>
102
- <xs:union memberTypes="length-with-unit named-space infinity xs:float"/>
103
- </xs:simpleType>
104
- </xs:attribute>
105
- </xs:attributeGroup>
106
-
107
- </xs:schema>
108
- <!--
109
- Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
110
- of Technology, Institut National de Recherche en Informatique et en
111
- Automatique, Keio University). All Rights Reserved. See
112
- http://www.w3.org/Consortium/Legal/.
113
- -->
@@ -1,103 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
-
3
- <xs:schema
4
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
- xmlns="http://www.w3.org/1998/Math/MathML"
6
- targetNamespace="http://www.w3.org/1998/Math/MathML"
7
- elementFormDefault="qualified"
8
- >
9
-
10
- <xs:annotation>
11
- <xs:documentation>
12
- This is an XML Schema module containing some type definitions for MathML.
13
- Author: St&#233;phane Dalmas, INRIA.
14
- </xs:documentation>
15
- </xs:annotation>
16
-
17
- <!-- Simple sizes -->
18
-
19
- <xs:simpleType name="simple-size">
20
- <xs:restriction base="xs:string">
21
- <xs:enumeration value="small"/>
22
- <xs:enumeration value="normal"/>
23
- <xs:enumeration value="big"/>
24
- </xs:restriction>
25
- </xs:simpleType>
26
-
27
- <!-- Centering values -->
28
-
29
- <xs:simpleType name="centering">
30
- <xs:restriction base="xs:string">
31
- <xs:enumeration value="left"/>
32
- <xs:enumeration value="center"/>
33
- <xs:enumeration value="right"/>
34
- </xs:restriction>
35
- </xs:simpleType>
36
-
37
- <!-- The named spaces -->
38
-
39
- <!-- this is also used in the value of the "width" attribute on the
40
- "mpadded" element -->
41
- <xs:simpleType name="named-space">
42
- <xs:restriction base="xs:string">
43
- <xs:enumeration value="veryverythinmathspace"/>
44
- <xs:enumeration value="verythinmathspace"/>
45
- <xs:enumeration value="thinmathspace"/>
46
- <xs:enumeration value="mediummathspace"/>
47
- <xs:enumeration value="thickmathspace"/>
48
- <xs:enumeration value="verythickmathspace"/>
49
- <xs:enumeration value="veryverythickmathspace"/>
50
- </xs:restriction>
51
- </xs:simpleType>
52
-
53
- <!-- Thickness -->
54
-
55
- <xs:simpleType name="thickness">
56
- <xs:restriction base="xs:string">
57
- <xs:enumeration value="thin"/>
58
- <xs:enumeration value="medium"/>
59
- <xs:enumeration value="thick"/>
60
- </xs:restriction>
61
- </xs:simpleType>
62
-
63
-
64
- <!-- number with units used to specified lengths -->
65
-
66
- <xs:simpleType name="length-with-unit">
67
- <xs:restriction base="xs:string">
68
- <xs:pattern
69
- value="(-?([0-9]+|[0-9]*\.[0-9]+)*(em|ex|px|in|cm|mm|pt|pc|%))|0"/>
70
- </xs:restriction>
71
- </xs:simpleType>
72
-
73
- <xs:simpleType name="length-with-optional-unit">
74
- <xs:restriction base="xs:string">
75
- <xs:pattern
76
- value="-?([0-9]+|[0-9]*\.[0-9]+)*(em|ex|px|in|cm|mm|pt|pc|%)?"/>
77
- </xs:restriction>
78
- </xs:simpleType>
79
-
80
- <!-- This is just "infinity" that can be used as a length -->
81
-
82
- <xs:simpleType name="infinity">
83
- <xs:restriction base="xs:string">
84
- <xs:enumeration value="infinity"/>
85
- </xs:restriction>
86
- </xs:simpleType>
87
-
88
- <!-- colors defined as RGB -->
89
-
90
- <xs:simpleType name="RGB-color">
91
- <xs:restriction base="xs:string">
92
- <xs:pattern value="#(([0-9]|[a-f]){3}|([0-9]|[a-f]){6})"/>
93
- </xs:restriction>
94
- </xs:simpleType>
95
-
96
- </xs:schema>
97
-
98
- <!--
99
- Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
100
- of Technology, Institut National de Recherche en Informatique et en
101
- Automatique, Keio University). All Rights Reserved. See
102
- http://www.w3.org/Consortium/Legal/.
103
- -->
@@ -1,40 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
-
3
- <xs:schema
4
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
- xmlns="http://www.w3.org/1998/Math/MathML"
6
- targetNamespace="http://www.w3.org/1998/Math/MathML"
7
- elementFormDefault="qualified"
8
- >
9
-
10
- <xs:annotation>
11
- <xs:documentation>
12
- This is the XML Schema module for the MathML "merror" element.
13
- Author: St&#233;phane Dalmas, INRIA.
14
- </xs:documentation>
15
- </xs:annotation>
16
-
17
- <xs:attributeGroup name="merror.attlist">
18
- <xs:attributeGroup ref="Common.attrib"/>
19
- </xs:attributeGroup>
20
-
21
- <xs:group name="merror.content">
22
- <xs:sequence>
23
- <xs:group ref="Presentation-expr.class"/>
24
- </xs:sequence>
25
- </xs:group>
26
-
27
- <xs:complexType name="merror.type">
28
- <xs:group ref="merror.content" minOccurs="0" maxOccurs="unbounded"/>
29
- <xs:attributeGroup ref="merror.attlist"/>
30
- </xs:complexType>
31
-
32
- <xs:element name="merror" type="merror.type"/>
33
-
34
- </xs:schema>
35
- <!--
36
- Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
37
- of Technology, Institut National de Recherche en Informatique et en
38
- Automatique, Keio University). All Rights Reserved. See
39
- http://www.w3.org/Consortium/Legal/.
40
- -->
@@ -1,195 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
-
3
- <xs:schema
4
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
- xmlns="http://www.w3.org/1998/Math/MathML"
6
- targetNamespace="http://www.w3.org/1998/Math/MathML"
7
- elementFormDefault="qualified"
8
- >
9
- <xs:annotation>
10
- <xs:documentation>
11
- This is the XML schema module for the layout elements of the
12
- presentation part of MathML.
13
- Author: St&#233;phane Dalmas, INRIA.
14
- </xs:documentation>
15
- </xs:annotation>
16
-
17
- <!-- "mrow" -->
18
-
19
- <xs:attributeGroup name="mrow.attlist">
20
- <xs:attributeGroup ref="Common.attrib"/>
21
- </xs:attributeGroup>
22
-
23
- <xs:complexType name="mrow.type">
24
- <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
25
- <xs:attributeGroup ref="mrow.attlist"/>
26
- </xs:complexType>
27
-
28
- <xs:element name="mrow" type="mrow.type"/>
29
-
30
- <!-- "mfrac" -->
31
-
32
- <xs:attributeGroup name="mfrac.attlist">
33
- <xs:attribute name="bevelled" type="xs:boolean"/>
34
- <xs:attribute name="denomalign" type="centering" default="center"/>
35
- <xs:attribute name="numalign" type="centering" default="center"/>
36
- <xs:attribute name="linethickness" default="1">
37
- <xs:simpleType>
38
- <xs:union memberTypes="length-with-optional-unit thickness"/>
39
- </xs:simpleType>
40
- </xs:attribute>
41
- <xs:attributeGroup ref="Common.attrib"/>
42
- </xs:attributeGroup>
43
-
44
- <xs:complexType name="mfrac.type">
45
- <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
46
- <xs:attributeGroup ref="mfrac.attlist"/>
47
- </xs:complexType>
48
-
49
- <xs:element name="mfrac" type="mfrac.type"/>
50
-
51
- <!-- "msqrt" -->
52
-
53
- <xs:attributeGroup name="msqrt.attlist">
54
- <xs:attributeGroup ref="Common.attrib"/>
55
- </xs:attributeGroup>
56
-
57
- <!-- "msqrt" has an "inferred mrow" if more than one argument -->
58
- <xs:complexType name="msqrt.type">
59
- <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
60
- <xs:attributeGroup ref="msqrt.attlist"/>
61
- </xs:complexType>
62
-
63
- <xs:element name="msqrt" type="msqrt.type"/>
64
-
65
- <!-- "mroot" -->
66
-
67
- <xs:attributeGroup name="mroot.attlist">
68
- <xs:attributeGroup ref="Common.attrib"/>
69
- </xs:attributeGroup>
70
-
71
- <xs:complexType name="mroot.type">
72
- <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
73
- <xs:attributeGroup ref="mroot.attlist"/>
74
- </xs:complexType>
75
-
76
- <xs:element name="mroot" type="mroot.type"/>
77
-
78
- <!-- "mpadded" -->
79
-
80
- <xs:simpleType name="mpadded-space">
81
- <xs:restriction base="xs:string">
82
- <xs:pattern
83
- value="(\+|-)?([0-9]+|[0-9]*\.[0-9]+)(((%?) *(width|lspace|height|depth))|(em|ex|px|in|cm|mm|pt|pc))"/>
84
- </xs:restriction>
85
- </xs:simpleType>
86
-
87
- <xs:simpleType name="mpadded-width-space">
88
- <xs:restriction base="xs:string">
89
- <!-- MaxF: definition from spec seems wrong, fixing to ([+|-] unsigned-number (%[pseudo-unit]|pseudo-unit|h-unit)) | namedspace | 0 -->
90
- <xs:pattern value="((\+|-)?([0-9]+|[0-9]*\.[0-9]+)(((%?) *(width|lspace|height|depth)?)|(width|lspace|height|depth)|(em|ex|px|in|cm|mm|pt|pc)))|((veryverythin|verythin|thin|medium|thick|verythick|veryverythick)mathspace)|0"/>
91
- </xs:restriction>
92
- </xs:simpleType>
93
-
94
- <xs:attributeGroup name="mpadded.attlist">
95
- <xs:attribute name="width" type="mpadded-width-space"/>
96
- <!-- should have default=0 below but '0' is not in value space -->
97
- <!-- see bug #425 -->
98
- <xs:attribute name="lspace" type="mpadded-space"/>
99
- <xs:attribute name="height" type="mpadded-space"/>
100
- <xs:attribute name="depth" type="mpadded-space"/>
101
- <xs:attributeGroup ref="Common.attrib"/>
102
- </xs:attributeGroup>
103
-
104
- <xs:complexType name="mpadded.type">
105
- <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
106
- <xs:attributeGroup ref="mpadded.attlist"/>
107
- </xs:complexType>
108
-
109
- <xs:element name="mpadded" type="mpadded.type"/>
110
-
111
- <!-- "mphantom" -->
112
-
113
- <xs:attributeGroup name="mphantom.attlist">
114
- <xs:attributeGroup ref="Common.attrib"/>
115
- </xs:attributeGroup>
116
-
117
- <xs:complexType name="mphantom.type">
118
- <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
119
- <xs:attributeGroup ref="mphantom.attlist"/>
120
- </xs:complexType>
121
-
122
- <xs:element name="mphantom" type="mphantom.type"/>
123
-
124
- <!-- "mfenced" -->
125
-
126
- <xs:attributeGroup name="mfenced.attlist">
127
- <xs:attribute name="open" type="xs:string" default="("/>
128
- <xs:attribute name="close" type="xs:string" default=")"/>
129
- <xs:attribute name="separators" type="xs:string" default=","/>
130
- <xs:attributeGroup ref="Common.attrib"/>
131
- </xs:attributeGroup>
132
-
133
- <xs:complexType name="mfenced.type">
134
- <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
135
- <xs:attributeGroup ref="mfenced.attlist"/>
136
- </xs:complexType>
137
-
138
- <xs:element name="mfenced" type="mfenced.type"/>
139
-
140
- <!-- "menclose" -->
141
-
142
- <xs:attributeGroup name="menclose.attlist">
143
- <xs:attribute name="notation" default="longdiv">
144
- <xs:simpleType>
145
- <xs:restriction base="xs:string">
146
- <xs:enumeration value="actuarial"/>
147
- <xs:enumeration value="longdiv"/>
148
- <xs:enumeration value="radical"/>
149
- <xs:enumeration value="box"/>
150
- <xs:enumeration value="roundedbox"/>
151
- <xs:enumeration value="circle"/>
152
- <xs:enumeration value="left"/>
153
- <xs:enumeration value="right"/>
154
- <xs:enumeration value="top"/>
155
- <xs:enumeration value="bottom"/>
156
- <xs:enumeration value="updiagonalstrike"/>
157
- <xs:enumeration value="downdiagonalstrike"/>
158
- <xs:enumeration value="verticalstrike"/>
159
- <xs:enumeration value="horizontalstrike"/>
160
- </xs:restriction>
161
- </xs:simpleType>
162
- </xs:attribute>
163
- <xs:attributeGroup ref="Common.attrib"/>
164
- </xs:attributeGroup>
165
-
166
- <xs:complexType name="menclose.type">
167
- <xs:group ref="Presentation-expr.class" minOccurs="0" maxOccurs="unbounded"/>
168
- <xs:attributeGroup ref="menclose.attlist"/>
169
- </xs:complexType>
170
-
171
- <xs:element name="menclose" type="menclose.type"/>
172
-
173
- <!-- And the group of everything -->
174
-
175
- <xs:group name="Presentation-layout.class">
176
- <xs:choice>
177
- <xs:element ref="mrow"/>
178
- <xs:element ref="mfrac"/>
179
- <xs:element ref="msqrt"/>
180
- <xs:element ref="mroot"/>
181
- <xs:element ref="mpadded"/>
182
- <xs:element ref="mphantom"/>
183
- <xs:element ref="mfenced"/>
184
- <xs:element ref="menclose"/>
185
- </xs:choice>
186
- </xs:group>
187
-
188
- </xs:schema>
189
-
190
- <!--
191
- Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
192
- of Technology, Institut National de Recherche en Informatique et en
193
- Automatique, Keio University). All Rights Reserved. See
194
- http://www.w3.org/Consortium/Legal/.
195
- -->
@@ -1,186 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
-
3
- <xs:schema
4
- xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
- xmlns="http://www.w3.org/1998/Math/MathML"
6
- targetNamespace="http://www.w3.org/1998/Math/MathML"
7
- elementFormDefault="qualified"
8
- >
9
-
10
- <xs:annotation>
11
- <xs:documentation>
12
- This is an XML Schema module for the presentation elements of MathML
13
- dealing with subscripts and superscripts.
14
- Author: St&#233;phane Dalmas, INRIA.
15
- </xs:documentation>
16
- </xs:annotation>
17
-
18
- <!-- "msub" -->
19
-
20
- <xs:attributeGroup name="msub.attlist">
21
- <xs:attribute name="subscriptshift" type="length-with-unit"/>
22
- <xs:attributeGroup ref="Common.attrib"/>
23
- </xs:attributeGroup>
24
-
25
- <xs:complexType name="msub.type">
26
- <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
27
- <xs:attributeGroup ref="msub.attlist"/>
28
- </xs:complexType>
29
-
30
- <xs:element name="msub" type="msub.type"/>
31
-
32
- <!-- "msup" -->
33
-
34
- <xs:attributeGroup name="msup.attlist">
35
- <xs:attribute name="superscriptshift" type="length-with-unit"/>
36
- <xs:attributeGroup ref="Common.attrib"/>
37
- </xs:attributeGroup>
38
-
39
- <xs:complexType name="msup.type">
40
- <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
41
- <xs:attributeGroup ref="msup.attlist"/>
42
- </xs:complexType>
43
-
44
- <xs:element name="msup" type="msup.type"/>
45
-
46
- <!-- "msubsup" -->
47
-
48
- <xs:attributeGroup name="msubsup.attlist">
49
- <xs:attribute name="subscriptshift" type="length-with-unit"/>
50
- <xs:attribute name="superscriptshift" type="length-with-unit"/>
51
- <xs:attributeGroup ref="Common.attrib"/>
52
- </xs:attributeGroup>
53
-
54
- <xs:complexType name="msubsup.type">
55
- <xs:group ref="Presentation-expr.class" minOccurs="3" maxOccurs="3"/>
56
- <xs:attributeGroup ref="msubsup.attlist"/>
57
- </xs:complexType>
58
-
59
- <xs:element name="msubsup" type="msubsup.type"/>
60
-
61
- <!-- "munder" -->
62
-
63
- <xs:attributeGroup name="munder.attlist">
64
- <xs:attribute name="accentunder" type="xs:boolean"/>
65
- <xs:attributeGroup ref="Common.attrib"/>
66
- </xs:attributeGroup>
67
-
68
- <xs:complexType name="munder.type">
69
- <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
70
- <xs:attributeGroup ref="munder.attlist"/>
71
- </xs:complexType>
72
-
73
- <xs:element name="munder" type="munder.type"/>
74
-
75
- <!-- "mover" -->
76
-
77
- <xs:attributeGroup name="mover.attlist">
78
- <xs:attribute name="accent" type="xs:boolean"/>
79
- <xs:attributeGroup ref="Common.attrib"/>
80
- </xs:attributeGroup>
81
-
82
- <xs:complexType name="mover.type">
83
- <xs:group ref="Presentation-expr.class" minOccurs="2" maxOccurs="2"/>
84
- <xs:attributeGroup ref="mover.attlist"/>
85
- </xs:complexType>
86
-
87
- <xs:element name="mover" type="mover.type"/>
88
-
89
- <!-- "munderover" -->
90
-
91
- <xs:attributeGroup name="munderover.attlist">
92
- <xs:attribute name="accent" type="xs:boolean"/>
93
- <xs:attribute name="accentunder" type="xs:boolean"/>
94
- <xs:attributeGroup ref="Common.attrib"/>
95
- </xs:attributeGroup>
96
-
97
- <xs:complexType name="munderover.type">
98
- <xs:group ref="Presentation-expr.class" minOccurs="3" maxOccurs="3"/>
99
- <xs:attributeGroup ref="munderover.attlist"/>
100
- </xs:complexType>
101
-
102
- <xs:element name="munderover" type="munderover.type"/>
103
-
104
- <!-- "mmultiscripts", "mprescripts" and "none" -->
105
-
106
- <xs:attributeGroup name="mmultiscripts.attlist">
107
- <xs:attributeGroup ref="Common.attrib"/>
108
- </xs:attributeGroup>
109
-
110
- <xs:group name="Presentation-expr-or-none.class">
111
- <xs:choice>
112
- <xs:group ref="Presentation-expr.class"/>
113
- <xs:element ref="none"/>
114
- </xs:choice>
115
- </xs:group>
116
-
117
- <!-- not used
118
- <xs:group name="mprescripts.group">
119
- <xs:sequence>
120
- <xs:element ref="mprescripts"/>
121
- <xs:choice minOccurs="0" maxOccurs="unbounded">
122
- <xs:group ref="Presentation-expr.class"/>
123
- <xs:element ref="none"/>
124
- </xs:choice>
125
- </xs:sequence>
126
- </xs:group>
127
- -->
128
-
129
- <xs:group name="mmultiscripts.content">
130
- <xs:sequence>
131
- <xs:group ref="Presentation-expr.class"/>
132
- <xs:sequence minOccurs="0" maxOccurs="unbounded">
133
- <xs:group ref="Presentation-expr-or-none.class"/>
134
- <xs:group ref="Presentation-expr-or-none.class"/>
135
- </xs:sequence>
136
- <xs:sequence minOccurs="0">
137
- <xs:element ref="mprescripts"/>
138
- <xs:sequence maxOccurs="unbounded">
139
- <xs:group ref="Presentation-expr-or-none.class"/>
140
- <xs:group ref="Presentation-expr-or-none.class"/>
141
- </xs:sequence>
142
- </xs:sequence>
143
- </xs:sequence>
144
- </xs:group>
145
-
146
- <xs:complexType name="mmultiscripts.type">
147
- <xs:group ref="mmultiscripts.content"/>
148
- <xs:attributeGroup ref="mmultiscripts.attlist"/>
149
- </xs:complexType>
150
-
151
- <xs:element name="mmultiscripts" type="mmultiscripts.type"/>
152
-
153
- <!-- Nothing... -->
154
- <xs:complexType name="none.type">
155
- </xs:complexType>
156
-
157
- <xs:element name="none" type="none.type"/>
158
-
159
- <!-- also void -->
160
- <xs:complexType name="mprescripts.type">
161
- </xs:complexType>
162
-
163
- <xs:element name="mprescripts" type="mprescripts.type"/>
164
-
165
- <!-- And the group of everything -->
166
-
167
- <xs:group name="Presentation-script.class">
168
- <xs:choice>
169
- <xs:element ref="msub"/>
170
- <xs:element ref="msup"/>
171
- <xs:element ref="msubsup"/>
172
- <xs:element ref="munder"/>
173
- <xs:element ref="mover"/>
174
- <xs:element ref="munderover"/>
175
- <xs:element ref="mmultiscripts"/>
176
- </xs:choice>
177
- </xs:group>
178
-
179
- </xs:schema>
180
-
181
- <!--
182
- Copyright &#251; 2002 World Wide Web Consortium, (Massachusetts Institute
183
- of Technology, Institut National de Recherche en Informatique et en
184
- Automatique, Keio University). All Rights Reserved. See
185
- http://www.w3.org/Consortium/Legal/.
186
- -->