schematron-nokogiri 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/schematron-nokogiri.rb +3 -3
  3. data/schematron-nokogiri.gemspec +1 -1
  4. data/spec/instances/ubl/ubl_simple_invoicing.xml +317 -0
  5. data/spec/schema/open_peppol/SI-UBL-INV-1.1.1rc2.xsl +15921 -0
  6. data/spec/schema/open_peppol/SI-UBL-INV-1.1.xsl +15921 -0
  7. data/spec/schema/open_peppol/SI-UBL-INV-STRICT.SCH +86 -0
  8. data/spec/schema/open_peppol/SI-UBL-INV.SCH +88 -0
  9. data/spec/schema/open_peppol/convert/iso_abstract_expand.xsl +297 -0
  10. data/spec/schema/open_peppol/convert/iso_dsdl_include.xsl +1509 -0
  11. data/spec/schema/open_peppol/convert/iso_schematron_message.xsl +55 -0
  12. data/spec/schema/open_peppol/convert/iso_schematron_skeleton_for_xslt1.xsl +1844 -0
  13. data/spec/schema/open_peppol/convert/iso_svrl_for_xslt1.xsl +605 -0
  14. data/spec/schema/open_peppol/general/SI-UBL-GENERAL.SCH +10 -0
  15. data/spec/schema/open_peppol/lib/saxon.jar +0 -0
  16. data/spec/schema/open_peppol/v1.0/SI-UBL-CRE-100.SCH +459 -0
  17. data/spec/schema/open_peppol/v1.0/SI-UBL-CRE-100.XSL +1298 -0
  18. data/spec/schema/open_peppol/v1.0/SI-UBL-INV-100.SCH +531 -0
  19. data/spec/schema/open_peppol/v1.0/SI-UBL-INV-100.XSL +1457 -0
  20. data/spec/schema/open_peppol/v1.0/SI-UBL-INV-V10-FATAL.SCH +45 -0
  21. data/spec/schema/open_peppol/v1.0/SI-UBL-INV-V10-WARNING.SCH +467 -0
  22. data/spec/schema/open_peppol/v1.0/biicore/abstract/BIICORE-T10.sch +433 -0
  23. data/spec/schema/open_peppol/v1.0/biicore/ubl/BIICORE-UBL-T10.sch +425 -0
  24. data/spec/schema/open_peppol/v1.0/biiprofiles/UBL/BIIPROFILES-UBL-T10.sch +14 -0
  25. data/spec/schema/open_peppol/v1.0/biiprofiles/abstract/BIIPROFILES-T10.sch +16 -0
  26. data/spec/schema/open_peppol/v1.0/biirules/UBL/BIIRULES-UBL-T10.sch +70 -0
  27. data/spec/schema/open_peppol/v1.0/biirules/abstract/BIIRULES-T10.sch +91 -0
  28. data/spec/schema/open_peppol/v1.0/biirules/codelist/BIIRULESCodesT10.sch +47 -0
  29. data/spec/schema/open_peppol/v1.0/eugen/UBL/EUGEN-UBL-T10.sch +45 -0
  30. data/spec/schema/open_peppol/v1.0/eugen/abstract/EUGEN-T10.sch +57 -0
  31. data/spec/schema/open_peppol/v1.0/eugen/codelist/EUGENCodesT10.sch +47 -0
  32. data/spec/schema/open_peppol/v1.1/BII/BIICORE-UBL-T10-V1.0.sch +6879 -0
  33. data/spec/schema/open_peppol/v1.1/BII/BIIRULES-UBL-T10.sch +28 -0
  34. data/spec/schema/open_peppol/v1.1/BII/BIIRULES-UBL-T10.xsl +1186 -0
  35. data/spec/schema/open_peppol/v1.1/BII/UBL/BIIRULES-UBL-T10.sch +80 -0
  36. data/spec/schema/open_peppol/v1.1/BII/abstract/BIIRULES-T10.sch +78 -0
  37. data/spec/schema/open_peppol/v1.1/BII/codelist/BIIRULESCodesT10-UBL.sch +55 -0
  38. data/spec/schema/open_peppol/v1.1/BII/convert.bat +7 -0
  39. data/spec/schema/open_peppol/v1.1/PEPPOL/OPENPEPPOL-UBL-T10.sch +28 -0
  40. data/spec/schema/open_peppol/v1.1/PEPPOL/UBL/OPENPEPPOL-UBL-T10.sch +62 -0
  41. data/spec/schema/open_peppol/v1.1/PEPPOL/abstract/OPENPEPPOL-T10.sch +82 -0
  42. data/spec/schema/open_peppol/v1.1/PEPPOL/codelist/OPENPEPPOLCodesT10-UBL.sch +47 -0
  43. data/spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-Codes.SCH +24 -0
  44. data/spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-FATAL.SCH +103 -0
  45. data/spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-WARNING.SCH +498 -0
  46. data/spec/schema/open_peppol/v1.1/V1.1-Check.sch +3 -0
  47. data/spec/schema_spec.rb +12 -0
  48. metadata +45 -2
@@ -0,0 +1,3 @@
1
+ <rule context="node()[not(contains(//cbc:CustomizationID, 'urn:www.cenbii.eu:transaction:biitrns010:ver2.0:extended:urn:www.peppol.eu:bis:peppol4a:ver2.0:extended:urn:www.simplerinvoicing.org:si:si-ubl:ver1.1'))] | @*[not(contains(//cbc:CustomizationID, 'urn:www.cenbii.eu:transaction:biitrns010:ver2.0:extended:urn:www.peppol.eu:bis:peppol4a:ver2.0:extended:urn:www.simplerinvoicing.org:si:si-ubl:ver1.1'))]">
2
+ <assert test="true()" />
3
+ </rule>
data/spec/schema_spec.rb CHANGED
@@ -63,5 +63,17 @@ describe SchematronNokogiri::Schema do
63
63
 
64
64
 
65
65
  end
66
+
67
+ it 'should log report rules in the results' do
68
+ schema_file = File.join 'spec', 'schema', 'open_peppol', 'SI-UBL-INV.SCH'
69
+ instance_file = File.join 'spec', 'instances', 'ubl', 'ubl_simple_invoicing.xml'
70
+
71
+ schema_doc = Nokogiri::XML(File.open(schema_file))
72
+ instance_doc = Nokogiri::XML(File.open(instance_file))
73
+
74
+ stron = SchematronNokogiri::Schema.new schema_doc
75
+ results = stron.validate instance_doc
76
+
77
+ end
66
78
 
67
79
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schematron-nokogiri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Francesco Lazzarino
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-11-24 00:00:00.000000000 Z
12
+ date: 2017-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -52,7 +52,50 @@ files:
52
52
  - spec/instances/premis-in-mets/bad.xml
53
53
  - spec/instances/premis-in-mets/good.xml
54
54
  - spec/instances/ubl/ubl.xml
55
+ - spec/instances/ubl/ubl_simple_invoicing.xml
55
56
  - spec/schema/fda_sip.sch
57
+ - spec/schema/open_peppol/SI-UBL-INV-1.1.1rc2.xsl
58
+ - spec/schema/open_peppol/SI-UBL-INV-1.1.xsl
59
+ - spec/schema/open_peppol/SI-UBL-INV-STRICT.SCH
60
+ - spec/schema/open_peppol/SI-UBL-INV.SCH
61
+ - spec/schema/open_peppol/convert/iso_abstract_expand.xsl
62
+ - spec/schema/open_peppol/convert/iso_dsdl_include.xsl
63
+ - spec/schema/open_peppol/convert/iso_schematron_message.xsl
64
+ - spec/schema/open_peppol/convert/iso_schematron_skeleton_for_xslt1.xsl
65
+ - spec/schema/open_peppol/convert/iso_svrl_for_xslt1.xsl
66
+ - spec/schema/open_peppol/general/SI-UBL-GENERAL.SCH
67
+ - spec/schema/open_peppol/lib/saxon.jar
68
+ - spec/schema/open_peppol/v1.0/SI-UBL-CRE-100.SCH
69
+ - spec/schema/open_peppol/v1.0/SI-UBL-CRE-100.XSL
70
+ - spec/schema/open_peppol/v1.0/SI-UBL-INV-100.SCH
71
+ - spec/schema/open_peppol/v1.0/SI-UBL-INV-100.XSL
72
+ - spec/schema/open_peppol/v1.0/SI-UBL-INV-V10-FATAL.SCH
73
+ - spec/schema/open_peppol/v1.0/SI-UBL-INV-V10-WARNING.SCH
74
+ - spec/schema/open_peppol/v1.0/biicore/abstract/BIICORE-T10.sch
75
+ - spec/schema/open_peppol/v1.0/biicore/ubl/BIICORE-UBL-T10.sch
76
+ - spec/schema/open_peppol/v1.0/biiprofiles/UBL/BIIPROFILES-UBL-T10.sch
77
+ - spec/schema/open_peppol/v1.0/biiprofiles/abstract/BIIPROFILES-T10.sch
78
+ - spec/schema/open_peppol/v1.0/biirules/UBL/BIIRULES-UBL-T10.sch
79
+ - spec/schema/open_peppol/v1.0/biirules/abstract/BIIRULES-T10.sch
80
+ - spec/schema/open_peppol/v1.0/biirules/codelist/BIIRULESCodesT10.sch
81
+ - spec/schema/open_peppol/v1.0/eugen/UBL/EUGEN-UBL-T10.sch
82
+ - spec/schema/open_peppol/v1.0/eugen/abstract/EUGEN-T10.sch
83
+ - spec/schema/open_peppol/v1.0/eugen/codelist/EUGENCodesT10.sch
84
+ - spec/schema/open_peppol/v1.1/BII/BIICORE-UBL-T10-V1.0.sch
85
+ - spec/schema/open_peppol/v1.1/BII/BIIRULES-UBL-T10.sch
86
+ - spec/schema/open_peppol/v1.1/BII/BIIRULES-UBL-T10.xsl
87
+ - spec/schema/open_peppol/v1.1/BII/UBL/BIIRULES-UBL-T10.sch
88
+ - spec/schema/open_peppol/v1.1/BII/abstract/BIIRULES-T10.sch
89
+ - spec/schema/open_peppol/v1.1/BII/codelist/BIIRULESCodesT10-UBL.sch
90
+ - spec/schema/open_peppol/v1.1/BII/convert.bat
91
+ - spec/schema/open_peppol/v1.1/PEPPOL/OPENPEPPOL-UBL-T10.sch
92
+ - spec/schema/open_peppol/v1.1/PEPPOL/UBL/OPENPEPPOL-UBL-T10.sch
93
+ - spec/schema/open_peppol/v1.1/PEPPOL/abstract/OPENPEPPOL-T10.sch
94
+ - spec/schema/open_peppol/v1.1/PEPPOL/codelist/OPENPEPPOLCodesT10-UBL.sch
95
+ - spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-Codes.SCH
96
+ - spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-FATAL.SCH
97
+ - spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-WARNING.SCH
98
+ - spec/schema/open_peppol/v1.1/V1.1-Check.sch
56
99
  - spec/schema/pim.sch
57
100
  - spec/schema/ubl.sch
58
101
  - spec/schema_spec.rb