resme 0.1.0

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 (63) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/Gemfile +6 -0
  4. data/LICENSE.txt +21 -0
  5. data/README.md +170 -0
  6. data/Rakefile +2 -0
  7. data/bin/console +14 -0
  8. data/bin/setup +8 -0
  9. data/exe/resme +6 -0
  10. data/lib/resme.rb +4 -0
  11. data/lib/resme/cli/command_semantics.rb +155 -0
  12. data/lib/resme/cli/command_syntax.rb +192 -0
  13. data/lib/resme/renderer/renderer.rb +103 -0
  14. data/lib/resme/templates/europass/eu.xml.erb +405 -0
  15. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Achievement.xsd +91 -0
  16. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Certificate.xsd +62 -0
  17. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/CommonTypes.xsd +139 -0
  18. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/ComputerSkill.xsd +112 -0
  19. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/ContactInformation.xsd +321 -0
  20. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Demographics.xsd +122 -0
  21. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/DigitalContent.xsd +164 -0
  22. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/DocumentInformation.xsd +119 -0
  23. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Documentation.xsd +122 -0
  24. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/DrivingSkill.xsd +71 -0
  25. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/EducationalExperience.xsd +137 -0
  26. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/EmploymentExperience.xsd +65 -0
  27. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/EuropassCoverLetter.xsd +70 -0
  28. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/EuropassLearnerInformation.xsd +91 -0
  29. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/EuropassPrintingPreferences.xsd +247 -0
  30. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/EuropassSchema.xsd +133 -0
  31. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Experience.xsd +75 -0
  32. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Headline.xsd +97 -0
  33. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Identification.xsd +54 -0
  34. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Language.xsd +107 -0
  35. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Letter.xsd +129 -0
  36. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/LinguisticSkill.xsd +189 -0
  37. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/OccupationalField.xsd +68 -0
  38. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Organisation.xsd +129 -0
  39. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/PersonName.xsd +71 -0
  40. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/Skill.xsd +71 -0
  41. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/imported/EQF_08_V1.0.0.xsd +115 -0
  42. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/imported/EUDrivingLicence_V1.1.0.xsd +28 -0
  43. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/imported/ISCED97_V1.0.0.xsd +981 -0
  44. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/imported/NACE_COM_V1.0.0.xsd +5630 -0
  45. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/included/EuropassAddressFormats_V1.3.0.xsd +117 -0
  46. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/included/EuropassISCO_88_COM_V1.4.0.xsd +15116 -0
  47. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/included/EuropassISOCountries_V1.6.0.xsd +6180 -0
  48. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/included/EuropassISOLanguages_V1.8.0.xsd +7645 -0
  49. data/lib/resme/templates/europass/europass-xml-schema-definition-v3.3.0/included/EuropassNationalities_V1.6.0.xsd +6179 -0
  50. data/lib/resme/templates/europass/europass-xml-schema-doc-v3.3.0.pdf +0 -0
  51. data/lib/resme/templates/html/css/main.css +87 -0
  52. data/lib/resme/templates/html/css/normalize.css +424 -0
  53. data/lib/resme/templates/html/index.html.erb +22 -0
  54. data/lib/resme/templates/html/js/main.js +0 -0
  55. data/lib/resme/templates/html/js/plugins.js +24 -0
  56. data/lib/resme/templates/html/js/vendor/jquery-1.12.0.min.js +5 -0
  57. data/lib/resme/templates/html/js/vendor/modernizr-2.8.3.min.js +4 -0
  58. data/lib/resme/templates/resume.json.erb +137 -0
  59. data/lib/resme/templates/resume.md.erb +120 -0
  60. data/lib/resme/templates/resume.yml +240 -0
  61. data/lib/resme/version.rb +3 -0
  62. data/resme.gemspec +28 -0
  63. metadata +151 -0
@@ -0,0 +1,122 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema
3
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ xmlns="http://europass.cedefop.europa.eu/Europass"
5
+ targetNamespace="http://europass.cedefop.europa.eu/Europass"
6
+ elementFormDefault="qualified">
7
+
8
+ <!--
9
+ /*
10
+ * Copyright European Union 2002-2014
11
+ *
12
+ *
13
+ * Licensed under the EUPL, Version 1.1 or – as soon they
14
+ * will be approved by the European Commission - subsequent
15
+ * versions of the EUPL (the "Licence");
16
+ * You may not use this work except in compliance with the
17
+ * Licence.
18
+ * You may obtain a copy of the Licence at:
19
+ *
20
+ * http://ec.europa.eu/idabc/eupl.html
21
+ *
22
+ *
23
+ * Unless required by applicable law or agreed to in
24
+ * writing, software distributed under the Licence is
25
+ * distributed on an "AS IS" basis,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
27
+ * express or implied.
28
+ * See the Licence for the specific language governing
29
+ * permissions and limitations under the Licence.
30
+ *
31
+ */
32
+ -->
33
+ <xsd:include schemaLocation="http://europass.cedefop.europa.eu/xml/included/EuropassNationalities_V1.6.0.xsd">
34
+ <xsd:annotation>
35
+ <xsd:documentation xml:lang="en">
36
+ The included "EuropassNationalities" schema defines the list of nationality codes that may appear in the Europass XML documents. The code of each nationality matches the coresponding coutnry's code.
37
+ </xsd:documentation>
38
+ </xsd:annotation>
39
+ </xsd:include>
40
+
41
+ <xsd:include schemaLocation="CommonTypes.xsd"/>
42
+
43
+ <!-- Demographics Information -->
44
+ <xsd:complexType name="DemographicsType">
45
+ <xsd:annotation>
46
+ <xsd:documentation xml:lang="en">
47
+ Contains demographics-related information about the individual. It includes the birthdate, gender and list of nationalities.
48
+ </xsd:documentation>
49
+ </xsd:annotation>
50
+ <xsd:sequence>
51
+ <xsd:element name="Birthdate" type="DateType" minOccurs="0">
52
+ <xsd:annotation>
53
+ <xsd:documentation xml:lang="en">The date of birth of the individual. According to its type, the Birthdate element has no content and must have at least a year attribute.</xsd:documentation>
54
+ </xsd:annotation>
55
+ </xsd:element>
56
+ <xsd:element name="Gender" type="GenderLabelType" minOccurs="0">
57
+ <xsd:annotation>
58
+ <xsd:documentation xml:lang="en">
59
+ The gender is described by one of M or F, which correspond to male, female and non specified accordingly.
60
+ </xsd:documentation>
61
+ </xsd:annotation>
62
+ </xsd:element>
63
+ <xsd:element name="NationalityList" minOccurs="0">
64
+ <xsd:complexType>
65
+ <xsd:sequence>
66
+ <xsd:element name="Nationality" type="NationalityType" maxOccurs="unbounded">
67
+ <xsd:annotation>
68
+ <xsd:documentation xml:lang="en">
69
+ Defines a nationality. The nationality is described by a code and is a text only element. E.g. code: DE, label: German.
70
+ </xsd:documentation>
71
+ </xsd:annotation>
72
+ </xsd:element>
73
+ </xsd:sequence>
74
+ </xsd:complexType>
75
+ </xsd:element>
76
+ </xsd:sequence>
77
+ </xsd:complexType>
78
+
79
+
80
+ <!-- Nationality -->
81
+ <xsd:complexType name="NationalityType">
82
+ <xsd:annotation>
83
+ <xsd:documentation xml:lang="en">
84
+ Defines a nationality. The nationality is described by a code and a label. E.g. code: FR, label: French.
85
+ </xsd:documentation>
86
+ </xsd:annotation>
87
+ <xsd:complexContent>
88
+ <xsd:restriction base="LabelType">
89
+ <xsd:sequence>
90
+ <xsd:element name="Code" minOccurs="0" type="nationalityCountryCode">
91
+ <xsd:annotation>
92
+ <xsd:documentation xml:lang="en">
93
+ Defines the country code type to which the nationality corresponds. The type is defined in the included schema "EuropassISOCountries".
94
+ </xsd:documentation>
95
+ </xsd:annotation>
96
+ </xsd:element>
97
+ <xsd:element name="Label" type="xsd:string" minOccurs="0"/>
98
+ </xsd:sequence>
99
+ </xsd:restriction>
100
+ </xsd:complexContent>
101
+ </xsd:complexType>
102
+
103
+
104
+ <!-- Gender Types -->
105
+ <xsd:complexType name="GenderLabelType">
106
+ <xsd:complexContent>
107
+ <xsd:restriction base="LabelType">
108
+ <xsd:sequence>
109
+ <xsd:element name="Code" minOccurs="0" type="GenderCodesEnumeration"/>
110
+ <xsd:element name="Label" type="xsd:string" minOccurs="0"/>
111
+ </xsd:sequence>
112
+ </xsd:restriction>
113
+ </xsd:complexContent>
114
+ </xsd:complexType>
115
+
116
+ <xsd:simpleType name="GenderCodesEnumeration">
117
+ <xsd:restriction base="xsd:string">
118
+ <xsd:enumeration value="M"/>
119
+ <xsd:enumeration value="F"/>
120
+ </xsd:restriction>
121
+ </xsd:simpleType>
122
+ </xsd:schema>
@@ -0,0 +1,164 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema
3
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ xmlns="http://europass.cedefop.europa.eu/Europass"
5
+ targetNamespace="http://europass.cedefop.europa.eu/Europass"
6
+ elementFormDefault="qualified">
7
+
8
+ <!--
9
+ /*
10
+ * Copyright European Union 2002-2014
11
+ *
12
+ *
13
+ * Licensed under the EUPL, Version 1.1 or – as soon they
14
+ * will be approved by the European Commission - subsequent
15
+ * versions of the EUPL (the "Licence");
16
+ * You may not use this work except in compliance with the
17
+ * Licence.
18
+ * You may obtain a copy of the Licence at:
19
+ *
20
+ * http://ec.europa.eu/idabc/eupl.html
21
+ *
22
+ *
23
+ * Unless required by applicable law or agreed to in
24
+ * writing, software distributed under the Licence is
25
+ * distributed on an "AS IS" basis,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
27
+ * express or implied.
28
+ * See the Licence for the specific language governing
29
+ * permissions and limitations under the Licence.
30
+ *
31
+ */
32
+ -->
33
+
34
+ <xsd:complexType name="AttachmentListType">
35
+ <xsd:annotation>
36
+ <xsd:documentation xml:lang="en">
37
+ List any digital document (PDF, JPEG or PNG format) that an individual has attached to her Europass document to support/evidence of her personal data, learning achievements, work experiences, skills, competences, diplomas, etc.
38
+ </xsd:documentation>
39
+ </xsd:annotation>
40
+ <xsd:sequence>
41
+ <xsd:element name="Attachment" type="AttachmentType" minOccurs="0" maxOccurs="unbounded"/>
42
+ </xsd:sequence>
43
+ </xsd:complexType>
44
+
45
+ <xsd:complexType name="AttachmentType">
46
+ <xsd:annotation>
47
+ <xsd:documentation xml:lang="en">
48
+ Extends the FileDataType by defining a Description sub-element and a required id attribute.
49
+ </xsd:documentation>
50
+ </xsd:annotation>
51
+ <xsd:complexContent>
52
+ <xsd:extension base="FileDataType">
53
+ <xsd:sequence>
54
+ <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
55
+ </xsd:sequence>
56
+ <xsd:attribute name="id" type="xsd:ID" use="required"/>
57
+ </xsd:extension>
58
+ </xsd:complexContent>
59
+ </xsd:complexType>
60
+
61
+ <!-- Attachments and Photo -->
62
+ <xsd:complexType name="MetadataListType">
63
+ <xsd:sequence>
64
+ <xsd:element name="Metadata" maxOccurs="unbounded">
65
+ <xsd:annotation>
66
+ <xsd:documentation xml:lang="en">
67
+ Offers extra information about this document.
68
+ </xsd:documentation>
69
+ </xsd:annotation>
70
+ <xsd:complexType>
71
+ <xsd:attribute name="key" type="xsd:string" use="required"/>
72
+ <xsd:attribute name="value" type="xsd:string" use="required"/>
73
+ </xsd:complexType>
74
+ </xsd:element>
75
+ </xsd:sequence>
76
+ </xsd:complexType>
77
+
78
+ <xsd:complexType name="FileDataType">
79
+ <xsd:sequence>
80
+ <xsd:element name="Name" type="xsd:string" minOccurs="0">
81
+ <xsd:annotation>
82
+ <xsd:documentation xml:lang="en">
83
+ Defines the original file-name.
84
+ </xsd:documentation>
85
+ </xsd:annotation>
86
+ </xsd:element>
87
+ <xsd:element name="MimeType" type="MimeTypeEnumeration">
88
+ <xsd:annotation>
89
+ <xsd:documentation xml:lang="en">
90
+ Defines the file type of the document and must follow the MimeTypeEnumeration data type.
91
+ </xsd:documentation>
92
+ </xsd:annotation>
93
+ </xsd:element>
94
+ <xsd:element name="Data" type="xsd:base64Binary">
95
+ <xsd:annotation>
96
+ <xsd:documentation xml:lang="en">
97
+ Includes the raw base-64 encoded bytes of the document.
98
+ </xsd:documentation>
99
+ </xsd:annotation>
100
+ </xsd:element>
101
+ <xsd:element name="MetadataList" type="MetadataListType" minOccurs="0" maxOccurs="1">
102
+ <xsd:annotation>
103
+ <xsd:documentation xml:lang="en">
104
+ Lists Metadata elements, each offering some extra information about this document.
105
+ </xsd:documentation>
106
+ </xsd:annotation>
107
+ </xsd:element>
108
+ </xsd:sequence>
109
+ </xsd:complexType>
110
+
111
+ <xsd:complexType name="PhotoDataType">
112
+ <xsd:annotation>
113
+ <xsd:documentation xml:lang="en">
114
+ Contains the base-64 encoded bytes of a JPEG or PNG image file that represents the personal photo of an individual.
115
+ Restricts the FileDataType by excluding the Name sub-element and specifying that the MimeType accepts values from the ImageMimeTypeEnumeration.
116
+ </xsd:documentation>
117
+ </xsd:annotation>
118
+ <xsd:complexContent>
119
+ <xsd:restriction base="FileDataType">
120
+ <xsd:sequence>
121
+ <xsd:element name="MimeType" type="ImageMimeTypeEnumeration"/>
122
+ <xsd:element name="Data" type="xsd:base64Binary"/>
123
+ <xsd:element name="MetadataList" type="MetadataListType" minOccurs="0" maxOccurs="1"/>
124
+ </xsd:sequence>
125
+ </xsd:restriction>
126
+ </xsd:complexContent>
127
+ </xsd:complexType>
128
+
129
+ <xsd:complexType name="SignatureDataType">
130
+ <xsd:annotation>
131
+ <xsd:documentation xml:lang="en">
132
+ Contains the base-64 encoded bytes of a JPEG or PNG image file that represents the signature an individual.
133
+ Restricts the FileDataType by excluding the Name sub-element and specifying that the MimeType accepts values from the ImageMimeTypeEnumeration.
134
+ </xsd:documentation>
135
+ </xsd:annotation>
136
+ <xsd:complexContent>
137
+ <xsd:extension base="PhotoDataType"/>
138
+ </xsd:complexContent>
139
+ </xsd:complexType>
140
+
141
+ <xsd:simpleType name="MimeTypeEnumeration">
142
+ <xsd:annotation>
143
+ <xsd:documentation xml:lang="en">
144
+ Restricts the string by defining an enumeration of allowed file mime types.
145
+ </xsd:documentation>
146
+ </xsd:annotation>
147
+ <xsd:restriction base="xsd:string">
148
+ <xsd:enumeration value="image/jpeg"/>
149
+ <xsd:enumeration value="image/pjpeg"/>
150
+ <xsd:enumeration value="image/png"/>
151
+ <xsd:enumeration value="image/x-png"/>
152
+ <xsd:enumeration value="application/pdf"/>
153
+ </xsd:restriction>
154
+ </xsd:simpleType>
155
+
156
+ <xsd:simpleType name="ImageMimeTypeEnumeration">
157
+ <xsd:restriction base="MimeTypeEnumeration">
158
+ <xsd:enumeration value="image/jpeg"/>
159
+ <xsd:enumeration value="image/pjpeg"/>
160
+ <xsd:enumeration value="image/png"/>
161
+ <xsd:enumeration value="image/x-png"/>
162
+ </xsd:restriction>
163
+ </xsd:simpleType>
164
+ </xsd:schema>
@@ -0,0 +1,119 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema
3
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ xmlns="http://europass.cedefop.europa.eu/Europass"
5
+ targetNamespace="http://europass.cedefop.europa.eu/Europass"
6
+ elementFormDefault="qualified">
7
+
8
+ <!--
9
+ /*
10
+ * Copyright European Union 2002-2014
11
+ *
12
+ *
13
+ * Licensed under the EUPL, Version 1.1 or – as soon they
14
+ * will be approved by the European Commission - subsequent
15
+ * versions of the EUPL (the "Licence");
16
+ * You may not use this work except in compliance with the
17
+ * Licence.
18
+ * You may obtain a copy of the Licence at:
19
+ *
20
+ * http://ec.europa.eu/idabc/eupl.html
21
+ *
22
+ *
23
+ * Unless required by applicable law or agreed to in
24
+ * writing, software distributed under the Licence is
25
+ * distributed on an "AS IS" basis,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
27
+ * express or implied.
28
+ * See the Licence for the specific language governing
29
+ * permissions and limitations under the Licence.
30
+ *
31
+ */
32
+ -->
33
+ <xsd:include schemaLocation="CommonTypes.xsd"/>
34
+
35
+ <xsd:complexType name="DocumentInfoType">
36
+ <xsd:annotation>
37
+ <xsd:documentation xml:lang="en">
38
+ Contains information about the date the XML was issued/ produced, the xsd version with which the xml file is compatible, and optional comments.
39
+ </xsd:documentation>
40
+ </xsd:annotation>
41
+ <xsd:sequence>
42
+ <xsd:element name="DocumentType" type="DocumentTypeType" minOccurs="1" maxOccurs="1">
43
+ <xsd:annotation>
44
+ <xsd:documentation xml:lang="en">The Europass Document described by an instance of this schema.</xsd:documentation>
45
+ </xsd:annotation>
46
+ </xsd:element>
47
+ <xsd:element name="Bundle" type="DocumentListType" minOccurs="0" maxOccurs="1">
48
+ <xsd:annotation>
49
+ <xsd:documentation xml:lang="en">
50
+ Defines the accepted Document elements that are included within a generated Document bundle.
51
+ E.g. to indicate that a CV+ESP must include a Cover Letter, this element needs to include a "Document" element with value "ECL".
52
+ </xsd:documentation>
53
+ </xsd:annotation>
54
+ </xsd:element>
55
+ <xsd:element name="CreationDate" type="xsd:dateTime" minOccurs="1" maxOccurs="1">
56
+ <xsd:annotation>
57
+ <xsd:documentation xml:lang="en">
58
+ The date this document was first created.
59
+ </xsd:documentation>
60
+ </xsd:annotation>
61
+ </xsd:element>
62
+ <xsd:element name="LastUpdateDate" type="xsd:dateTime" minOccurs="1" maxOccurs="1">
63
+ <xsd:annotation>
64
+ <xsd:documentation xml:lang="en">
65
+ The date this document was last updated.
66
+ </xsd:documentation>
67
+ </xsd:annotation>
68
+ </xsd:element>
69
+ <xsd:element name="XSDVersion" type="CurrentVersionNumberType" minOccurs="1" maxOccurs="1">
70
+ <xsd:annotation>
71
+ <xsd:documentation xml:lang="en">
72
+ The Major.Minor version of the XML Schema with which this document is compatible.
73
+ Even when the Patch version of the XML Schema changes, the specific XML document should continue to validate even against the updated version.
74
+ </xsd:documentation>
75
+ </xsd:annotation>
76
+ </xsd:element>
77
+ <xsd:element name="Generator" type="xsd:string" minOccurs="1" maxOccurs="1">
78
+ <xsd:annotation>
79
+ <xsd:documentation xml:lang="en">
80
+ Reveals how this document was created. For example through the online Europass editors, or through the Europass web services, etc.
81
+ </xsd:documentation>
82
+ </xsd:annotation>
83
+ </xsd:element>
84
+ <xsd:element name="Comment" type="xsd:string" minOccurs="0">
85
+ <xsd:annotation>
86
+ <xsd:documentation xml:lang="en">
87
+ Any comment related to this document.
88
+ </xsd:documentation>
89
+ </xsd:annotation>
90
+ </xsd:element>
91
+ <xsd:element name="Copyright" type="xsd:string" fixed="© European Communities | http://europass.cedefop.europa.eu" minOccurs="0"/>
92
+ <xsd:element name="EuropassLogo" type="xsd:boolean" minOccurs="0" maxOccurs="1">
93
+ <xsd:annotation>
94
+ <xsd:documentation xml:lang="en">
95
+ Defines whether the document generation will display the Europass Logo. This is a true/false value
96
+ </xsd:documentation>
97
+ </xsd:annotation>
98
+ </xsd:element>
99
+ </xsd:sequence>
100
+ </xsd:complexType>
101
+
102
+ <xsd:simpleType name="CurrentVersionNumberType">
103
+ <xsd:restriction base="VersionNumberType">
104
+ <xsd:pattern value="V3.3"/>
105
+ </xsd:restriction>
106
+ </xsd:simpleType>
107
+
108
+ <xsd:simpleType name="VersionNumberType">
109
+ <xsd:annotation>
110
+ <xsd:documentation xml:lang="en">
111
+ The xsd version is comprised of the letter V and two digits separated by '.' E.g. V2.0 or V2.5.
112
+ </xsd:documentation>
113
+ </xsd:annotation>
114
+ <xsd:restriction base="xsd:string">
115
+ <xsd:pattern value="V[0-9]\.[0-9]"/>
116
+ </xsd:restriction>
117
+ </xsd:simpleType>
118
+
119
+ </xsd:schema>
@@ -0,0 +1,122 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <xsd:schema
3
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4
+ xmlns="http://europass.cedefop.europa.eu/Europass"
5
+ targetNamespace="http://europass.cedefop.europa.eu/Europass"
6
+ elementFormDefault="qualified">
7
+
8
+ <!--
9
+ /*
10
+ * Copyright European Union 2002-2014
11
+ *
12
+ *
13
+ * Licensed under the EUPL, Version 1.1 or – as soon they
14
+ * will be approved by the European Commission - subsequent
15
+ * versions of the EUPL (the "Licence");
16
+ * You may not use this work except in compliance with the
17
+ * Licence.
18
+ * You may obtain a copy of the Licence at:
19
+ *
20
+ * http://ec.europa.eu/idabc/eupl.html
21
+ *
22
+ *
23
+ * Unless required by applicable law or agreed to in
24
+ * writing, software distributed under the Licence is
25
+ * distributed on an "AS IS" basis,
26
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
27
+ * express or implied.
28
+ * See the Licence for the specific language governing
29
+ * permissions and limitations under the Licence.
30
+ *
31
+ */
32
+ -->
33
+ <xsd:include schemaLocation="CommonTypes.xsd"/>
34
+
35
+ <!-- Documentation -->
36
+ <xsd:complexType name="GenericDocumentationType">
37
+ <xsd:annotation>
38
+ <xsd:documentation xml:lang="en">
39
+ Contains a list of references to material attached to this XML instance or outside the scope of it, and which enrich or support the learner’s information.
40
+ </xsd:documentation>
41
+ </xsd:annotation>
42
+ <xsd:sequence>
43
+ <xsd:element name="Heading" type="DocumentationHeadingLabelType" minOccurs="0" maxOccurs="1" />
44
+ <xsd:element name="InterDocument" type="InterDocumentDocumentationType" minOccurs="0" maxOccurs="1" />
45
+ <xsd:element name="IntraDocument" type="IntraDocumentDocumentationType" minOccurs="0" maxOccurs="1" />
46
+ <xsd:element name="ExtraDocument" type="ExtraDocumentDocumentationType" minOccurs="0" maxOccurs="1" />
47
+ </xsd:sequence>
48
+ </xsd:complexType>
49
+
50
+ <!-- Enclosed Reference to an existing element with ID -->
51
+
52
+ <xsd:complexType name="DocumentationHeadingLabelType">
53
+ <xsd:complexContent>
54
+ <xsd:restriction base="LabelType" >
55
+ <xsd:sequence>
56
+ <xsd:element name="Code" minOccurs="0" maxOccurs="1" type="DocumentationHeadingLabelTypesEnumaration"/>
57
+ <xsd:element name="Label" type="xsd:string" minOccurs="0" maxOccurs="1"/>
58
+ </xsd:sequence>
59
+ </xsd:restriction>
60
+ </xsd:complexContent>
61
+ </xsd:complexType>
62
+
63
+ <xsd:simpleType name="DocumentationHeadingLabelTypesEnumaration">
64
+ <xsd:restriction base="xsd:string">
65
+ <xsd:pattern value="heading_[1-9]{1}"></xsd:pattern>
66
+ </xsd:restriction>
67
+ </xsd:simpleType>
68
+
69
+ <!-- Internal Reference to an existing element with ID -->
70
+
71
+ <xsd:complexType name="IntraDocumentDocumentationType">
72
+ <xsd:annotation>
73
+ <xsd:documentation xml:lang="en">
74
+ Contains a list of references to material attached to this XML instance and which enrich or support the learner’s information.
75
+ </xsd:documentation>
76
+ </xsd:annotation>
77
+ <xsd:sequence>
78
+ <xsd:element name="ReferenceTo" minOccurs="0" maxOccurs="unbounded" type="InternalReferenceType"/>
79
+ </xsd:sequence>
80
+ </xsd:complexType>
81
+
82
+ <xsd:complexType name="InternalReferenceType">
83
+ <xsd:attribute name="idref" type="xsd:IDREF" use="required"/>
84
+ </xsd:complexType>
85
+
86
+ <!-- External Reference to a resource by name and optionally with URI -->
87
+ <xsd:complexType name="ExtraDocumentDocumentationType">
88
+ <xsd:annotation>
89
+ <xsd:documentation xml:lang="en">
90
+ Contains a list of references to material outside this XML instance which enrich or support the learner’s information.
91
+ </xsd:documentation>
92
+ </xsd:annotation>
93
+ <xsd:sequence>
94
+ <xsd:element name="ReferencedResource" minOccurs="0" maxOccurs="unbounded" type="ExternalReferenceType"/>
95
+ </xsd:sequence>
96
+ </xsd:complexType>
97
+
98
+ <xsd:complexType name="ExternalReferenceType">
99
+ <xsd:sequence>
100
+ <xsd:element name="Description" type="xsd:string" minOccurs="0" maxOccurs="1"/>
101
+ </xsd:sequence>
102
+ <xsd:attribute name="href" type="xsd:anyURI" use="optional"/>
103
+ </xsd:complexType>
104
+
105
+ <!-- Reference to a Europass Document -->
106
+ <xsd:complexType name="InterDocumentDocumentationType">
107
+ <xsd:annotation>
108
+ <xsd:documentation xml:lang="en">
109
+ Contains a list of references to other Europass Document.
110
+ </xsd:documentation>
111
+ </xsd:annotation>
112
+ <xsd:sequence>
113
+ <xsd:element name="ReferencedDocument" minOccurs="0" maxOccurs="unbounded" type="EuropassDocumentReferenceType"/>
114
+ </xsd:sequence>
115
+ </xsd:complexType>
116
+
117
+ <xsd:complexType name="EuropassDocumentReferenceType">
118
+ <xsd:attribute name="ref" type="DocumentTypeType" />
119
+ </xsd:complexType>
120
+
121
+
122
+ </xsd:schema>