zatca 0.1.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (207) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -2
  3. data/bin/console +0 -0
  4. data/bin/setup +0 -0
  5. data/einvoicing-sdk/Apps/fatoora +12 -0
  6. data/einvoicing-sdk/Apps/fatoora.bat +16 -0
  7. data/einvoicing-sdk/Apps/global.json +1 -0
  8. data/einvoicing-sdk/Apps/jq.exe +0 -0
  9. data/einvoicing-sdk/Apps/zatca-einvoicing-sdk-238-R3.2.7.jar +0 -0
  10. data/einvoicing-sdk/Configuration/config.json +11 -0
  11. data/einvoicing-sdk/Configuration/defaults.json +11 -0
  12. data/einvoicing-sdk/Configuration/jq.exe +0 -0
  13. data/einvoicing-sdk/Configuration/usage.txt +16 -0
  14. data/einvoicing-sdk/Data/Certificates/cert.pem +1 -0
  15. data/einvoicing-sdk/Data/Certificates/ec-secp256k1-priv-key.pem +1 -0
  16. data/einvoicing-sdk/Data/Input/csr-config-example-AR-VAT-Group.properties +9 -0
  17. data/einvoicing-sdk/Data/Input/csr-config-example-AR.properties +9 -0
  18. data/einvoicing-sdk/Data/Input/csr-config-example-EN-VAT-group.properties +9 -0
  19. data/einvoicing-sdk/Data/Input/csr-config-example-EN.properties +9 -0
  20. data/einvoicing-sdk/Data/Input/csr-config-template.properties +9 -0
  21. data/einvoicing-sdk/Data/PIH/pih.txt +1 -0
  22. data/einvoicing-sdk/Data/Rules/schematrons/20210819_ZATCA_E-invoice_Validation_Rules.xsl +2844 -0
  23. data/einvoicing-sdk/Data/Rules/schematrons/CEN-EN16931-UBL.xsl +1973 -0
  24. data/einvoicing-sdk/Data/Samples/PDF-A3/Simplified Debit Note.pdf +0 -0
  25. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Credit Note.pdf +0 -0
  26. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Debit Note.pdf +0 -0
  27. data/einvoicing-sdk/Data/Samples/PDF-A3/Standard Invoice.pdf +0 -0
  28. data/einvoicing-sdk/Data/Samples/PDF-A3/Tax_Invoice_USD.pdf +0 -0
  29. data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note.xml +300 -0
  30. data/einvoicing-sdk/Data/Samples/Simplified/Credit/Simplified_Credit_Note_Error.xml +225 -0
  31. data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note.xml +211 -0
  32. data/einvoicing-sdk/Data/Samples/Simplified/Debit/Simplified_Debit_Note_Error.xml +226 -0
  33. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Out_Of_Scope_Simplified_Invoice.xml +207 -0
  34. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Additional_Simplified_Invoices/Simplified_Invoice_USD.xml +246 -0
  35. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice.xml +246 -0
  36. data/einvoicing-sdk/Data/Samples/Simplified/Invoice/Simplified_Invoice_Error.xml +228 -0
  37. data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note.xml +227 -0
  38. data/einvoicing-sdk/Data/Samples/Standard/Credit/Standard_Credit_Note_Error.xml +224 -0
  39. data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note.xml +227 -0
  40. data/einvoicing-sdk/Data/Samples/Standard/Debit/Standard_Debit_Note_Error.xml +226 -0
  41. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Exempt_Standard_Invoice.xml +227 -0
  42. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Standard_Invoice_USD.xml +227 -0
  43. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Additional_Standard_Invoices/Zero_Rate_Standard_Invoice.xml +227 -0
  44. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 1.xml +294 -0
  45. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Sample Invoice[Advance Payements] - 2.xml +432 -0
  46. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice.xml +222 -0
  47. data/einvoicing-sdk/Data/Samples/Standard/Invoice/Standard_Invoice_Error.xml +228 -0
  48. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/CCTS_CCT_SchemaModule-2.1.xsd +731 -0
  49. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonAggregateComponents-2.1.xsd +44365 -0
  50. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonBasicComponents-2.1.xsd +5389 -0
  51. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonExtensionComponents-2.1.xsd +223 -0
  52. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CommonSignatureComponents-2.1.xsd +101 -0
  53. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-CoreComponentParameters-2.1.xsd +63 -0
  54. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-ExtensionContentDataType-2.1.xsd +89 -0
  55. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-QualifiedDataTypes-2.1.xsd +69 -0
  56. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureAggregateComponents-2.1.xsd +138 -0
  57. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-SignatureBasicComponents-2.1.xsd +78 -0
  58. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-UnqualifiedDataTypes-2.1.xsd +553 -0
  59. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv132-2.1.xsd +476 -0
  60. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-XAdESv141-2.1.xsd +25 -0
  61. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/common/UBL-xmldsig-core-schema-2.1.xsd +330 -0
  62. data/einvoicing-sdk/Data/Schemas/xsds/UBL2.1/xsd/maindoc/UBL-Invoice-2.1.xsd +1002 -0
  63. data/einvoicing-sdk/Dockerfile +26 -0
  64. data/einvoicing-sdk/LICENSE.txt +56 -0
  65. data/einvoicing-sdk/Lib/.Net/DLL/BouncyCastle.Crypto.dll +0 -0
  66. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Core.dll +0 -0
  67. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Text.dll +0 -0
  68. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.Util.dll +0 -0
  69. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.OpenJDK.XML.API.dll +0 -0
  70. data/einvoicing-sdk/Lib/.Net/DLL/IKVM.Runtime.dll +0 -0
  71. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll +0 -0
  72. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.dll.config +43 -0
  73. data/einvoicing-sdk/Lib/.Net/DLL/SDKNETFrameWorkLib.pdb +0 -0
  74. data/einvoicing-sdk/Lib/.Net/DLL/System.Net.Http.dll +0 -0
  75. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-10.8.dll +0 -0
  76. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.dll +0 -0
  77. data/einvoicing-sdk/Lib/.Net/DLL/saxon-he-api-10.8.xml +11759 -0
  78. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/3f204b7a-faba-42d8-8288-8b6fe516555c.vsidx +0 -0
  79. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/f95b6f91-c110-4b7a-bb49-3fc6bde85b13.vsidx +0 -0
  80. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/FileContentIndex/read.lock +0 -0
  81. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/.vs/SDKNETFrameworkTest/v17/.suo +0 -0
  82. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/App.config +14 -0
  83. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/BouncyCastle.Crypto.dll +0 -0
  84. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/CSRGeneratorOpenSSL.cs +58 -0
  85. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Core.dll +0 -0
  86. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Text.dll +0 -0
  87. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.Util.dll +0 -0
  88. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.OpenJDK.XML.API.dll +0 -0
  89. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/IKVM.Runtime.dll +0 -0
  90. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Program.cs +194 -0
  91. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Properties/AssemblyInfo.cs +36 -0
  92. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/Readme.txt +8 -0
  93. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll +0 -0
  94. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.dll.config +43 -0
  95. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameWorkLib.pdb +0 -0
  96. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.csproj +120 -0
  97. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe +0 -0
  98. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.exe.config +20 -0
  99. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.pdb +0 -0
  100. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/SDKNETFrameworkTest.sln +25 -0
  101. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/BouncyCastle.Crypto.dll +0 -0
  102. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/certificate.txt +1 -0
  103. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/pih.txt +1 -0
  104. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/Data/privateKey.txt +1 -0
  105. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Core.dll +0 -0
  106. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Text.dll +0 -0
  107. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.Util.dll +0 -0
  108. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.OpenJDK.XML.API.dll +0 -0
  109. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/IKVM.Runtime.dll +0 -0
  110. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll +0 -0
  111. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.dll.config +43 -0
  112. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameWorkLib.pdb +0 -0
  113. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe +0 -0
  114. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.exe.config +20 -0
  115. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/SDKNETFrameworkTest.pdb +0 -0
  116. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/System.Net.Http.dll +0 -0
  117. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-10.8.dll +0 -0
  118. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.dll +0 -0
  119. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/bin/Debug/saxon-he-api-10.8.xml +11759 -0
  120. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/.NETFramework,Version=v4.7.2.AssemblyAttributes.cs +4 -0
  121. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferences.cache +0 -0
  122. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache +0 -0
  123. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.AssemblyReference.cache +0 -0
  124. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CopyComplete +0 -0
  125. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.CoreCompileInputs.cache +1 -0
  126. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.FileListAbsolute.txt +22 -0
  127. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.csproj.SuggestedBindingRedirects.cache +0 -0
  128. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.exe +0 -0
  129. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/obj/Debug/SDKNETFrameworkTest.pdb +0 -0
  130. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-10.8.dll +0 -0
  131. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.dll +0 -0
  132. data/einvoicing-sdk/Lib/.Net/SDKNETFrameworkTest/saxon-he-api-10.8.xml +11759 -0
  133. data/einvoicing-sdk/Lib/.Net/Test/BouncyCastle.Crypto.dll +0 -0
  134. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Core.dll +0 -0
  135. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Text.dll +0 -0
  136. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.Util.dll +0 -0
  137. data/einvoicing-sdk/Lib/.Net/Test/IKVM.OpenJDK.XML.API.dll +0 -0
  138. data/einvoicing-sdk/Lib/.Net/Test/IKVM.Runtime.dll +0 -0
  139. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll +0 -0
  140. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.dll.config +43 -0
  141. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameWorkLib.pdb +0 -0
  142. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe +0 -0
  143. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.exe.config +20 -0
  144. data/einvoicing-sdk/Lib/.Net/Test/SDKNETFrameworkTest.pdb +0 -0
  145. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-10.8.dll +0 -0
  146. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.dll +0 -0
  147. data/einvoicing-sdk/Lib/.Net/Test/saxon-he-api-10.8.xml +11759 -0
  148. data/einvoicing-sdk/README.md +15 -0
  149. data/einvoicing-sdk/Readme/readme.docx +0 -0
  150. data/einvoicing-sdk/Readme/readme.md +674 -0
  151. data/einvoicing-sdk/Readme/readme.pdf +0 -0
  152. data/einvoicing-sdk/Readme/~$readme.docx +0 -0
  153. data/einvoicing-sdk/docker-compose.yml +12 -0
  154. data/einvoicing-sdk/install.bat +74 -0
  155. data/einvoicing-sdk/install.sh +74 -0
  156. data/lib/zatca/client.rb +173 -0
  157. data/lib/zatca/hacks.rb +45 -0
  158. data/lib/zatca/hashing.rb +18 -0
  159. data/lib/zatca/qr_code_extractor.rb +31 -0
  160. data/lib/zatca/qr_code_generator.rb +9 -2
  161. data/lib/zatca/signing/certificate.rb +78 -0
  162. data/lib/zatca/signing/csr.rb +220 -0
  163. data/lib/zatca/signing/ecdsa.rb +59 -0
  164. data/lib/zatca/tag.rb +18 -8
  165. data/lib/zatca/tags.rb +9 -1
  166. data/lib/zatca/tags_schema.rb +5 -5
  167. data/lib/zatca/types.rb +7 -0
  168. data/lib/zatca/ubl/base_component.rb +142 -0
  169. data/lib/zatca/ubl/builder.rb +166 -0
  170. data/lib/zatca/ubl/common_aggregate_components/allowance_charge.rb +64 -0
  171. data/lib/zatca/ubl/common_aggregate_components/classified_tax_category.rb +25 -0
  172. data/lib/zatca/ubl/common_aggregate_components/delivery.rb +27 -0
  173. data/lib/zatca/ubl/common_aggregate_components/invoice_line.rb +63 -0
  174. data/lib/zatca/ubl/common_aggregate_components/item.rb +21 -0
  175. data/lib/zatca/ubl/common_aggregate_components/legal_monetary_total.rb +59 -0
  176. data/lib/zatca/ubl/common_aggregate_components/party.rb +28 -0
  177. data/lib/zatca/ubl/common_aggregate_components/party_identification.rb +25 -0
  178. data/lib/zatca/ubl/common_aggregate_components/party_legal_entity.rb +19 -0
  179. data/lib/zatca/ubl/common_aggregate_components/party_tax_scheme.rb +30 -0
  180. data/lib/zatca/ubl/common_aggregate_components/postal_address.rb +59 -0
  181. data/lib/zatca/ubl/common_aggregate_components/price.rb +20 -0
  182. data/lib/zatca/ubl/common_aggregate_components/tax_category.rb +56 -0
  183. data/lib/zatca/ubl/common_aggregate_components/tax_total.rb +58 -0
  184. data/lib/zatca/ubl/common_aggregate_components.rb +2 -0
  185. data/lib/zatca/ubl/invoice.rb +481 -0
  186. data/lib/zatca/ubl/invoice_subtype_builder.rb +50 -0
  187. data/lib/zatca/ubl/signing/cert.rb +48 -0
  188. data/lib/zatca/ubl/signing/invoice_signed_data_reference.rb +44 -0
  189. data/lib/zatca/ubl/signing/key_info.rb +25 -0
  190. data/lib/zatca/ubl/signing/object.rb +20 -0
  191. data/lib/zatca/ubl/signing/qualifying_properties.rb +27 -0
  192. data/lib/zatca/ubl/signing/signature.rb +50 -0
  193. data/lib/zatca/ubl/signing/signature_information.rb +19 -0
  194. data/lib/zatca/ubl/signing/signature_properties_reference.rb +26 -0
  195. data/lib/zatca/ubl/signing/signed_info.rb +21 -0
  196. data/lib/zatca/ubl/signing/signed_properties.rb +81 -0
  197. data/lib/zatca/ubl/signing/signed_signature_properties.rb +23 -0
  198. data/lib/zatca/ubl/signing/ubl_document_signatures.rb +25 -0
  199. data/lib/zatca/ubl/signing/ubl_extension.rb +22 -0
  200. data/lib/zatca/ubl/signing/ubl_extensions.rb +17 -0
  201. data/lib/zatca/ubl/signing.rb +2 -0
  202. data/lib/zatca/ubl.rb +2 -0
  203. data/lib/zatca/version.rb +1 -1
  204. data/lib/zatca.rb +27 -3
  205. data/zatca.gemspec +52 -0
  206. metadata +318 -10
  207. data/Gemfile.lock +0 -100
@@ -0,0 +1,476 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Library: OASIS Universal Business Language (UBL) 2.1 OS
4
+ http://docs.oasis-open.org/ubl/os-UBL-2.1/
5
+ Release Date: 04 November 2013
6
+ Module: UBL-XAdESv132-2.1.xsd
7
+ Generated on: 2011-02-21 17:20(UTC)
8
+
9
+ This is a copy of http://uri.etsi.org/01903/v1.3.2/XAdES.xsd modified
10
+ only to change the importing URI for the XML DSig schema.
11
+ -->
12
+ <xsd:schema targetNamespace="http://uri.etsi.org/01903/v1.3.2#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://uri.etsi.org/01903/v1.3.2#" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" elementFormDefault="qualified">
13
+ <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="UBL-xmldsig-core-schema-2.1.xsd"/>
14
+ <!-- Start auxiliary types definitions: AnyType, ObjectIdentifierType,
15
+ EncapsulatedPKIDataType and containers for time-stamp tokens -->
16
+ <!-- Start AnyType -->
17
+ <xsd:element name="Any" type="AnyType"/>
18
+ <xsd:complexType name="AnyType" mixed="true">
19
+ <xsd:sequence minOccurs="0" maxOccurs="unbounded">
20
+ <xsd:any namespace="##any" processContents="lax"/>
21
+ </xsd:sequence>
22
+ <xsd:anyAttribute namespace="##any"/>
23
+ </xsd:complexType>
24
+ <!-- End AnyType -->
25
+ <!-- Start ObjectIdentifierType-->
26
+ <xsd:element name="ObjectIdentifier" type="ObjectIdentifierType"/>
27
+ <xsd:complexType name="ObjectIdentifierType">
28
+ <xsd:sequence>
29
+ <xsd:element name="Identifier" type="IdentifierType"/>
30
+ <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
31
+ <xsd:element name="DocumentationReferences" type="DocumentationReferencesType" minOccurs="0"/>
32
+ </xsd:sequence>
33
+ </xsd:complexType>
34
+ <xsd:complexType name="IdentifierType">
35
+ <xsd:simpleContent>
36
+ <xsd:extension base="xsd:anyURI">
37
+ <xsd:attribute name="Qualifier" type="QualifierType" use="optional"/>
38
+ </xsd:extension>
39
+ </xsd:simpleContent>
40
+ </xsd:complexType>
41
+ <xsd:simpleType name="QualifierType">
42
+ <xsd:restriction base="xsd:string">
43
+ <xsd:enumeration value="OIDAsURI"/>
44
+ <xsd:enumeration value="OIDAsURN"/>
45
+ </xsd:restriction>
46
+ </xsd:simpleType>
47
+ <xsd:complexType name="DocumentationReferencesType">
48
+ <xsd:sequence maxOccurs="unbounded">
49
+ <xsd:element name="DocumentationReference" type="xsd:anyURI"/>
50
+ </xsd:sequence>
51
+ </xsd:complexType>
52
+ <!-- End ObjectIdentifierType-->
53
+ <!-- Start EncapsulatedPKIDataType-->
54
+ <xsd:element name="EncapsulatedPKIData" type="EncapsulatedPKIDataType"/>
55
+ <xsd:complexType name="EncapsulatedPKIDataType">
56
+ <xsd:simpleContent>
57
+ <xsd:extension base="xsd:base64Binary">
58
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
59
+ <xsd:attribute name="Encoding" type="xsd:anyURI" use="optional"/>
60
+ </xsd:extension>
61
+ </xsd:simpleContent>
62
+ </xsd:complexType>
63
+ <!-- End EncapsulatedPKIDataType -->
64
+ <!-- Start time-stamp containers types -->
65
+ <!-- Start GenericTimeStampType -->
66
+ <xsd:element name="Include" type="IncludeType"/>
67
+ <xsd:complexType name="IncludeType">
68
+ <xsd:attribute name="URI" type="xsd:anyURI" use="required"/>
69
+ <xsd:attribute name="referencedData" type="xsd:boolean" use="optional"/>
70
+ </xsd:complexType>
71
+ <xsd:element name="ReferenceInfo" type="ReferenceInfoType"/>
72
+ <xsd:complexType name="ReferenceInfoType">
73
+ <xsd:sequence>
74
+ <xsd:element ref="ds:DigestMethod"/>
75
+ <xsd:element ref="ds:DigestValue"/>
76
+ </xsd:sequence>
77
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
78
+ <xsd:attribute name="URI" type="xsd:anyURI" use="optional"/>
79
+ </xsd:complexType>
80
+ <xsd:complexType name="GenericTimeStampType" abstract="true">
81
+ <xsd:sequence>
82
+ <xsd:choice minOccurs="0">
83
+ <xsd:element ref="Include" minOccurs="0" maxOccurs="unbounded"/>
84
+ <xsd:element ref="ReferenceInfo" maxOccurs="unbounded"/>
85
+ </xsd:choice>
86
+ <xsd:element ref="ds:CanonicalizationMethod" minOccurs="0"/>
87
+ <xsd:choice maxOccurs="unbounded">
88
+ <xsd:element name="EncapsulatedTimeStamp" type="EncapsulatedPKIDataType"/>
89
+ <xsd:element name="XMLTimeStamp" type="AnyType"/>
90
+ </xsd:choice>
91
+ </xsd:sequence>
92
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
93
+ </xsd:complexType>
94
+ <!-- End GenericTimeStampType -->
95
+ <!-- Start XAdESTimeStampType -->
96
+ <xsd:element name="XAdESTimeStamp" type="XAdESTimeStampType"/>
97
+ <xsd:complexType name="XAdESTimeStampType">
98
+ <xsd:complexContent>
99
+ <xsd:restriction base="GenericTimeStampType">
100
+ <xsd:sequence>
101
+ <xsd:element ref="Include" minOccurs="0" maxOccurs="unbounded"/>
102
+ <xsd:element ref="ds:CanonicalizationMethod" minOccurs="0"/>
103
+ <xsd:choice maxOccurs="unbounded">
104
+ <xsd:element name="EncapsulatedTimeStamp" type="EncapsulatedPKIDataType"/>
105
+ <xsd:element name="XMLTimeStamp" type="AnyType"/>
106
+ </xsd:choice>
107
+ </xsd:sequence>
108
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
109
+ </xsd:restriction>
110
+ </xsd:complexContent>
111
+ </xsd:complexType>
112
+ <!-- End XAdESTimeStampType -->
113
+ <!-- Start OtherTimeStampType -->
114
+ <xsd:element name="OtherTimeStamp" type="OtherTimeStampType"/>
115
+ <xsd:complexType name="OtherTimeStampType">
116
+ <xsd:complexContent>
117
+ <xsd:restriction base="GenericTimeStampType">
118
+ <xsd:sequence>
119
+ <xsd:element ref="ReferenceInfo" maxOccurs="unbounded"/>
120
+ <xsd:element ref="ds:CanonicalizationMethod" minOccurs="0"/>
121
+ <xsd:choice>
122
+ <xsd:element name="EncapsulatedTimeStamp" type="EncapsulatedPKIDataType"/>
123
+ <xsd:element name="XMLTimeStamp" type="AnyType"/>
124
+ </xsd:choice>
125
+ </xsd:sequence>
126
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
127
+ </xsd:restriction>
128
+ </xsd:complexContent>
129
+ </xsd:complexType>
130
+ <!-- End OtherTimeStampType -->
131
+ <!-- End time-stamp containers types -->
132
+ <!-- End auxiliary types definitions-->
133
+ <!-- Start container types -->
134
+ <!-- Start QualifyingProperties -->
135
+ <xsd:element name="QualifyingProperties" type="QualifyingPropertiesType"/>
136
+ <xsd:complexType name="QualifyingPropertiesType">
137
+ <xsd:sequence>
138
+ <xsd:element name="SignedProperties" type="SignedPropertiesType" minOccurs="0"/>
139
+ <xsd:element name="UnsignedProperties" type="UnsignedPropertiesType" minOccurs="0"/>
140
+ </xsd:sequence>
141
+ <xsd:attribute name="Target" type="xsd:anyURI" use="required"/>
142
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
143
+ </xsd:complexType>
144
+ <!-- End QualifyingProperties -->
145
+ <!-- Start SignedProperties-->
146
+ <xsd:element name="SignedProperties" type="SignedPropertiesType"/>
147
+ <xsd:complexType name="SignedPropertiesType">
148
+ <xsd:sequence>
149
+ <xsd:element name="SignedSignatureProperties" type="SignedSignaturePropertiesType" minOccurs="0"/>
150
+ <xsd:element name="SignedDataObjectProperties" type="SignedDataObjectPropertiesType" minOccurs="0"/>
151
+ </xsd:sequence>
152
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
153
+ </xsd:complexType>
154
+ <!-- End SignedProperties-->
155
+ <!-- Start UnsignedProperties-->
156
+ <xsd:element name="UnsignedProperties" type="UnsignedPropertiesType"/>
157
+ <xsd:complexType name="UnsignedPropertiesType">
158
+ <xsd:sequence>
159
+ <xsd:element name="UnsignedSignatureProperties" type="UnsignedSignaturePropertiesType" minOccurs="0"/>
160
+ <xsd:element name="UnsignedDataObjectProperties" type="UnsignedDataObjectPropertiesType" minOccurs="0"/>
161
+ </xsd:sequence>
162
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
163
+ </xsd:complexType>
164
+ <!-- End UnsignedProperties-->
165
+ <!-- Start SignedSignatureProperties-->
166
+ <xsd:element name="SignedSignatureProperties" type="SignedSignaturePropertiesType"/>
167
+ <xsd:complexType name="SignedSignaturePropertiesType">
168
+ <xsd:sequence>
169
+ <xsd:element name="SigningTime" type="xsd:dateTime" minOccurs="0"/>
170
+ <xsd:element name="SigningCertificate" type="CertIDListType" minOccurs="0"/>
171
+ <xsd:element name="SignaturePolicyIdentifier" type="SignaturePolicyIdentifierType" minOccurs="0"/>
172
+ <xsd:element name="SignatureProductionPlace" type="SignatureProductionPlaceType" minOccurs="0"/>
173
+ <xsd:element name="SignerRole" type="SignerRoleType" minOccurs="0"/>
174
+ </xsd:sequence>
175
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
176
+ </xsd:complexType>
177
+ <!-- End SignedSignatureProperties-->
178
+ <!-- Start SignedDataObjectProperties-->
179
+ <xsd:element name="SignedDataObjectProperties" type="SignedDataObjectPropertiesType"/>
180
+ <xsd:complexType name="SignedDataObjectPropertiesType">
181
+ <xsd:sequence>
182
+ <xsd:element name="DataObjectFormat" type="DataObjectFormatType" minOccurs="0" maxOccurs="unbounded"/>
183
+ <xsd:element name="CommitmentTypeIndication" type="CommitmentTypeIndicationType" minOccurs="0" maxOccurs="unbounded"/>
184
+ <xsd:element name="AllDataObjectsTimeStamp" type="XAdESTimeStampType" minOccurs="0" maxOccurs="unbounded"/>
185
+ <xsd:element name="IndividualDataObjectsTimeStamp" type="XAdESTimeStampType" minOccurs="0" maxOccurs="unbounded"/>
186
+ </xsd:sequence>
187
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
188
+ </xsd:complexType>
189
+ <!-- End SignedDataObjectProperties-->
190
+ <!-- Start UnsignedSignatureProperties-->
191
+ <xsd:element name="UnsignedSignatureProperties" type="UnsignedSignaturePropertiesType"/>
192
+ <xsd:complexType name="UnsignedSignaturePropertiesType">
193
+ <xsd:choice maxOccurs="unbounded">
194
+ <xsd:element name="CounterSignature" type="CounterSignatureType"/>
195
+ <xsd:element name="SignatureTimeStamp" type="XAdESTimeStampType"/>
196
+ <xsd:element name="CompleteCertificateRefs" type="CompleteCertificateRefsType"/>
197
+ <xsd:element name="CompleteRevocationRefs" type="CompleteRevocationRefsType"/>
198
+ <xsd:element name="AttributeCertificateRefs" type="CompleteCertificateRefsType"/>
199
+ <xsd:element name="AttributeRevocationRefs" type="CompleteRevocationRefsType"/>
200
+ <xsd:element name="SigAndRefsTimeStamp" type="XAdESTimeStampType"/>
201
+ <xsd:element name="RefsOnlyTimeStamp" type="XAdESTimeStampType"/>
202
+ <xsd:element name="CertificateValues" type="CertificateValuesType"/>
203
+ <xsd:element name="RevocationValues" type="RevocationValuesType"/>
204
+ <xsd:element name="AttrAuthoritiesCertValues" type="CertificateValuesType"/>
205
+ <xsd:element name="AttributeRevocationValues" type="RevocationValuesType"/>
206
+ <xsd:element name="ArchiveTimeStamp" type="XAdESTimeStampType"/>
207
+ <xsd:any namespace="##other"/>
208
+ </xsd:choice>
209
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
210
+ </xsd:complexType>
211
+ <!-- End UnsignedSignatureProperties-->
212
+ <!-- Start UnsignedDataObjectProperties-->
213
+ <xsd:element name="UnsignedDataObjectProperties" type="UnsignedDataObjectPropertiesType"/>
214
+ <xsd:complexType name="UnsignedDataObjectPropertiesType">
215
+ <xsd:sequence>
216
+ <xsd:element name="UnsignedDataObjectProperty" type="AnyType" maxOccurs="unbounded"/>
217
+ </xsd:sequence>
218
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
219
+ </xsd:complexType>
220
+ <!-- End UnsignedDataObjectProperties-->
221
+ <!-- Start QualifyingPropertiesReference-->
222
+ <xsd:element name="QualifyingPropertiesReference" type="QualifyingPropertiesReferenceType"/>
223
+ <xsd:complexType name="QualifyingPropertiesReferenceType">
224
+ <xsd:attribute name="URI" type="xsd:anyURI" use="required"/>
225
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
226
+ </xsd:complexType>
227
+ <!-- End QualifyingPropertiesReference-->
228
+ <!-- End container types -->
229
+ <!-- Start SigningTime element -->
230
+ <xsd:element name="SigningTime" type="xsd:dateTime"/>
231
+ <!-- End SigningTime element -->
232
+ <!-- Start SigningCertificate -->
233
+ <xsd:element name="SigningCertificate" type="CertIDListType"/>
234
+ <xsd:complexType name="CertIDListType">
235
+ <xsd:sequence>
236
+ <xsd:element name="Cert" type="CertIDType" maxOccurs="unbounded"/>
237
+ </xsd:sequence>
238
+ </xsd:complexType>
239
+ <xsd:complexType name="CertIDType">
240
+ <xsd:sequence>
241
+ <xsd:element name="CertDigest" type="DigestAlgAndValueType"/>
242
+ <xsd:element name="IssuerSerial" type="ds:X509IssuerSerialType"/>
243
+ </xsd:sequence>
244
+ <xsd:attribute name="URI" type="xsd:anyURI" use="optional"/>
245
+ </xsd:complexType>
246
+ <xsd:complexType name="DigestAlgAndValueType">
247
+ <xsd:sequence>
248
+ <xsd:element ref="ds:DigestMethod"/>
249
+ <xsd:element ref="ds:DigestValue"/>
250
+ </xsd:sequence>
251
+ </xsd:complexType>
252
+ <!-- End SigningCertificate -->
253
+ <!-- Start SignaturePolicyIdentifier -->
254
+ <xsd:element name="SignaturePolicyIdentifier" type="SignaturePolicyIdentifierType"/>
255
+ <xsd:complexType name="SignaturePolicyIdentifierType">
256
+ <xsd:choice>
257
+ <xsd:element name="SignaturePolicyId" type="SignaturePolicyIdType"/>
258
+ <xsd:element name="SignaturePolicyImplied"/>
259
+ </xsd:choice>
260
+ </xsd:complexType>
261
+ <xsd:complexType name="SignaturePolicyIdType">
262
+ <xsd:sequence>
263
+ <xsd:element name="SigPolicyId" type="ObjectIdentifierType"/>
264
+ <xsd:element ref="ds:Transforms" minOccurs="0"/>
265
+ <xsd:element name="SigPolicyHash" type="DigestAlgAndValueType"/>
266
+ <xsd:element name="SigPolicyQualifiers" type="SigPolicyQualifiersListType" minOccurs="0"/>
267
+ </xsd:sequence>
268
+ </xsd:complexType>
269
+ <xsd:complexType name="SigPolicyQualifiersListType">
270
+ <xsd:sequence>
271
+ <xsd:element name="SigPolicyQualifier" type="AnyType" maxOccurs="unbounded"/>
272
+ </xsd:sequence>
273
+ </xsd:complexType>
274
+ <xsd:element name="SPURI" type="xsd:anyURI"/>
275
+ <xsd:element name="SPUserNotice" type="SPUserNoticeType"/>
276
+ <xsd:complexType name="SPUserNoticeType">
277
+ <xsd:sequence>
278
+ <xsd:element name="NoticeRef" type="NoticeReferenceType" minOccurs="0"/>
279
+ <xsd:element name="ExplicitText" type="xsd:string" minOccurs="0"/>
280
+ </xsd:sequence>
281
+ </xsd:complexType>
282
+ <xsd:complexType name="NoticeReferenceType">
283
+ <xsd:sequence>
284
+ <xsd:element name="Organization" type="xsd:string"/>
285
+ <xsd:element name="NoticeNumbers" type="IntegerListType"/>
286
+ </xsd:sequence>
287
+ </xsd:complexType>
288
+ <xsd:complexType name="IntegerListType">
289
+ <xsd:sequence>
290
+ <xsd:element name="int" type="xsd:integer" minOccurs="0" maxOccurs="unbounded"/>
291
+ </xsd:sequence>
292
+ </xsd:complexType>
293
+ <!-- End SignaturePolicyIdentifier -->
294
+ <!-- Start CounterSignature -->
295
+ <xsd:element name="CounterSignature" type="CounterSignatureType"/>
296
+ <xsd:complexType name="CounterSignatureType">
297
+ <xsd:sequence>
298
+ <xsd:element ref="ds:Signature"/>
299
+ </xsd:sequence>
300
+ </xsd:complexType>
301
+ <!-- End CounterSignature -->
302
+ <!-- Start DataObjectFormat -->
303
+ <xsd:element name="DataObjectFormat" type="DataObjectFormatType"/>
304
+ <xsd:complexType name="DataObjectFormatType">
305
+ <xsd:sequence>
306
+ <xsd:element name="Description" type="xsd:string" minOccurs="0"/>
307
+ <xsd:element name="ObjectIdentifier" type="ObjectIdentifierType" minOccurs="0"/>
308
+ <xsd:element name="MimeType" type="xsd:string" minOccurs="0"/>
309
+ <xsd:element name="Encoding" type="xsd:anyURI" minOccurs="0"/>
310
+ </xsd:sequence>
311
+ <xsd:attribute name="ObjectReference" type="xsd:anyURI" use="required"/>
312
+ </xsd:complexType>
313
+ <!-- End DataObjectFormat -->
314
+ <!-- Start CommitmentTypeIndication -->
315
+ <xsd:element name="CommitmentTypeIndication" type="CommitmentTypeIndicationType"/>
316
+ <xsd:complexType name="CommitmentTypeIndicationType">
317
+ <xsd:sequence>
318
+ <xsd:element name="CommitmentTypeId" type="ObjectIdentifierType"/>
319
+ <xsd:choice>
320
+ <xsd:element name="ObjectReference" type="xsd:anyURI" maxOccurs="unbounded"/>
321
+ <xsd:element name="AllSignedDataObjects"/>
322
+ </xsd:choice>
323
+ <xsd:element name="CommitmentTypeQualifiers" type="CommitmentTypeQualifiersListType" minOccurs="0"/>
324
+ </xsd:sequence>
325
+ </xsd:complexType>
326
+ <xsd:complexType name="CommitmentTypeQualifiersListType">
327
+ <xsd:sequence>
328
+ <xsd:element name="CommitmentTypeQualifier" type="AnyType" minOccurs="0" maxOccurs="unbounded"/>
329
+ </xsd:sequence>
330
+ </xsd:complexType>
331
+ <!-- End CommitmentTypeIndication -->
332
+ <!-- Start SignatureProductionPlace -->
333
+ <xsd:element name="SignatureProductionPlace" type="SignatureProductionPlaceType"/>
334
+ <xsd:complexType name="SignatureProductionPlaceType">
335
+ <xsd:sequence>
336
+ <xsd:element name="City" type="xsd:string" minOccurs="0"/>
337
+ <xsd:element name="StateOrProvince" type="xsd:string" minOccurs="0"/>
338
+ <xsd:element name="PostalCode" type="xsd:string" minOccurs="0"/>
339
+ <xsd:element name="CountryName" type="xsd:string" minOccurs="0"/>
340
+ </xsd:sequence>
341
+ </xsd:complexType>
342
+ <!-- End SignatureProductionPlace -->
343
+ <!-- Start SignerRole -->
344
+ <xsd:element name="SignerRole" type="SignerRoleType"/>
345
+ <xsd:complexType name="SignerRoleType">
346
+ <xsd:sequence>
347
+ <xsd:element name="ClaimedRoles" type="ClaimedRolesListType" minOccurs="0"/>
348
+ <xsd:element name="CertifiedRoles" type="CertifiedRolesListType" minOccurs="0"/>
349
+ </xsd:sequence>
350
+ </xsd:complexType>
351
+ <xsd:complexType name="ClaimedRolesListType">
352
+ <xsd:sequence>
353
+ <xsd:element name="ClaimedRole" type="AnyType" maxOccurs="unbounded"/>
354
+ </xsd:sequence>
355
+ </xsd:complexType>
356
+ <xsd:complexType name="CertifiedRolesListType">
357
+ <xsd:sequence>
358
+ <xsd:element name="CertifiedRole" type="EncapsulatedPKIDataType" maxOccurs="unbounded"/>
359
+ </xsd:sequence>
360
+ </xsd:complexType>
361
+ <!-- End SignerRole -->
362
+ <xsd:element name="AllDataObjectsTimeStamp" type="XAdESTimeStampType"/>
363
+ <xsd:element name="IndividualDataObjectsTimeStamp" type="XAdESTimeStampType"/>
364
+ <xsd:element name="SignatureTimeStamp" type="XAdESTimeStampType"/>
365
+ <!-- Start CompleteCertificateRefs -->
366
+ <xsd:element name="CompleteCertificateRefs" type="CompleteCertificateRefsType"/>
367
+ <xsd:complexType name="CompleteCertificateRefsType">
368
+ <xsd:sequence>
369
+ <xsd:element name="CertRefs" type="CertIDListType"/>
370
+ </xsd:sequence>
371
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
372
+ </xsd:complexType>
373
+ <!-- End CompleteCertificateRefs -->
374
+ <!-- Start CompleteRevocationRefs-->
375
+ <xsd:element name="CompleteRevocationRefs" type="CompleteRevocationRefsType"/>
376
+ <xsd:complexType name="CompleteRevocationRefsType">
377
+ <xsd:sequence>
378
+ <xsd:element name="CRLRefs" type="CRLRefsType" minOccurs="0"/>
379
+ <xsd:element name="OCSPRefs" type="OCSPRefsType" minOccurs="0"/>
380
+ <xsd:element name="OtherRefs" type="OtherCertStatusRefsType" minOccurs="0"/>
381
+ </xsd:sequence>
382
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
383
+ </xsd:complexType>
384
+ <xsd:complexType name="CRLRefsType">
385
+ <xsd:sequence>
386
+ <xsd:element name="CRLRef" type="CRLRefType" maxOccurs="unbounded"/>
387
+ </xsd:sequence>
388
+ </xsd:complexType>
389
+ <xsd:complexType name="CRLRefType">
390
+ <xsd:sequence>
391
+ <xsd:element name="DigestAlgAndValue" type="DigestAlgAndValueType"/>
392
+ <xsd:element name="CRLIdentifier" type="CRLIdentifierType" minOccurs="0"/>
393
+ </xsd:sequence>
394
+ </xsd:complexType>
395
+ <xsd:complexType name="CRLIdentifierType">
396
+ <xsd:sequence>
397
+ <xsd:element name="Issuer" type="xsd:string"/>
398
+ <xsd:element name="IssueTime" type="xsd:dateTime"/>
399
+ <xsd:element name="Number" type="xsd:integer" minOccurs="0"/>
400
+ </xsd:sequence>
401
+ <xsd:attribute name="URI" type="xsd:anyURI" use="optional"/>
402
+ </xsd:complexType>
403
+ <xsd:complexType name="OCSPRefsType">
404
+ <xsd:sequence>
405
+ <xsd:element name="OCSPRef" type="OCSPRefType" maxOccurs="unbounded"/>
406
+ </xsd:sequence>
407
+ </xsd:complexType>
408
+ <xsd:complexType name="OCSPRefType">
409
+ <xsd:sequence>
410
+ <xsd:element name="OCSPIdentifier" type="OCSPIdentifierType"/>
411
+ <xsd:element name="DigestAlgAndValue" type="DigestAlgAndValueType" minOccurs="0"/>
412
+ </xsd:sequence>
413
+ </xsd:complexType>
414
+ <xsd:complexType name="ResponderIDType">
415
+ <xsd:choice>
416
+ <xsd:element name="ByName" type="xsd:string"/>
417
+ <xsd:element name="ByKey" type="xsd:base64Binary"/>
418
+ </xsd:choice>
419
+ </xsd:complexType>
420
+ <xsd:complexType name="OCSPIdentifierType">
421
+ <xsd:sequence>
422
+ <xsd:element name="ResponderID" type="ResponderIDType"/>
423
+ <xsd:element name="ProducedAt" type="xsd:dateTime"/>
424
+ </xsd:sequence>
425
+ <xsd:attribute name="URI" type="xsd:anyURI" use="optional"/>
426
+ </xsd:complexType>
427
+ <xsd:complexType name="OtherCertStatusRefsType">
428
+ <xsd:sequence>
429
+ <xsd:element name="OtherRef" type="AnyType" maxOccurs="unbounded"/>
430
+ </xsd:sequence>
431
+ </xsd:complexType>
432
+ <!-- End CompleteRevocationRefs-->
433
+ <xsd:element name="AttributeCertificateRefs" type="CompleteCertificateRefsType"/>
434
+ <xsd:element name="AttributeRevocationRefs" type="CompleteRevocationRefsType"/>
435
+ <xsd:element name="SigAndRefsTimeStamp" type="XAdESTimeStampType"/>
436
+ <xsd:element name="RefsOnlyTimeStamp" type="XAdESTimeStampType"/>
437
+ <!-- Start CertificateValues -->
438
+ <xsd:element name="CertificateValues" type="CertificateValuesType"/>
439
+ <xsd:complexType name="CertificateValuesType">
440
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
441
+ <xsd:element name="EncapsulatedX509Certificate" type="EncapsulatedPKIDataType"/>
442
+ <xsd:element name="OtherCertificate" type="AnyType"/>
443
+ </xsd:choice>
444
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
445
+ </xsd:complexType>
446
+ <!-- End CertificateValues -->
447
+ <!-- Start RevocationValues-->
448
+ <xsd:element name="RevocationValues" type="RevocationValuesType"/>
449
+ <xsd:complexType name="RevocationValuesType">
450
+ <xsd:sequence>
451
+ <xsd:element name="CRLValues" type="CRLValuesType" minOccurs="0"/>
452
+ <xsd:element name="OCSPValues" type="OCSPValuesType" minOccurs="0"/>
453
+ <xsd:element name="OtherValues" type="OtherCertStatusValuesType" minOccurs="0"/>
454
+ </xsd:sequence>
455
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
456
+ </xsd:complexType>
457
+ <xsd:complexType name="CRLValuesType">
458
+ <xsd:sequence>
459
+ <xsd:element name="EncapsulatedCRLValue" type="EncapsulatedPKIDataType" maxOccurs="unbounded"/>
460
+ </xsd:sequence>
461
+ </xsd:complexType>
462
+ <xsd:complexType name="OCSPValuesType">
463
+ <xsd:sequence>
464
+ <xsd:element name="EncapsulatedOCSPValue" type="EncapsulatedPKIDataType" maxOccurs="unbounded"/>
465
+ </xsd:sequence>
466
+ </xsd:complexType>
467
+ <xsd:complexType name="OtherCertStatusValuesType">
468
+ <xsd:sequence>
469
+ <xsd:element name="OtherValue" type="AnyType" maxOccurs="unbounded"/>
470
+ </xsd:sequence>
471
+ </xsd:complexType>
472
+ <!-- End RevocationValues-->
473
+ <xsd:element name="AttrAuthoritiesCertValues" type="CertificateValuesType"/>
474
+ <xsd:element name="AttributeRevocationValues" type="RevocationValuesType"/>
475
+ <xsd:element name="ArchiveTimeStamp" type="XAdESTimeStampType"/>
476
+ </xsd:schema>
@@ -0,0 +1,25 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!--
3
+ Library: OASIS Universal Business Language (UBL) 2.1 OS
4
+ http://docs.oasis-open.org/ubl/os-UBL-2.1/
5
+ Release Date: 04 November 2013
6
+ Module: UBL-XAdESv141-2.1.xsd
7
+ Generated on: 2011-02-21 17:20(UTC)
8
+
9
+ This is a copy of http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd modified
10
+ only to change the importing URI for the XAdES v1.3.2 schema.
11
+ -->
12
+ <xsd:schema targetNamespace="http://uri.etsi.org/01903/v1.4.1#" xmlns="http://uri.etsi.org/01903/v1.4.1#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" elementFormDefault="qualified">
13
+ <xsd:import namespace="http://uri.etsi.org/01903/v1.3.2#" schemaLocation="UBL-XAdESv132-2.1.xsd"/>
14
+ <!-- Start CertificateValues -->
15
+ <xsd:element name="TimeStampValidationData" type="ValidationDataType"/>
16
+ <xsd:complexType name="ValidationDataType">
17
+ <xsd:sequence>
18
+ <xsd:element ref="xades:CertificateValues" minOccurs="0" />
19
+ <xsd:element ref="xades:RevocationValues" minOccurs="0" />
20
+ </xsd:sequence>
21
+ <xsd:attribute name="Id" type="xsd:ID" use="optional"/>
22
+ <xsd:attribute name="UR" type="xsd:anyURI" use="optional"/>
23
+ </xsd:complexType>
24
+ <xsd:element name="ArchiveTimeStampV2" type="xades:XAdESTimeStampType"/>
25
+ </xsd:schema>