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.
- checksums.yaml +4 -4
- data/lib/schematron-nokogiri.rb +3 -3
- data/schematron-nokogiri.gemspec +1 -1
- data/spec/instances/ubl/ubl_simple_invoicing.xml +317 -0
- data/spec/schema/open_peppol/SI-UBL-INV-1.1.1rc2.xsl +15921 -0
- data/spec/schema/open_peppol/SI-UBL-INV-1.1.xsl +15921 -0
- data/spec/schema/open_peppol/SI-UBL-INV-STRICT.SCH +86 -0
- data/spec/schema/open_peppol/SI-UBL-INV.SCH +88 -0
- data/spec/schema/open_peppol/convert/iso_abstract_expand.xsl +297 -0
- data/spec/schema/open_peppol/convert/iso_dsdl_include.xsl +1509 -0
- data/spec/schema/open_peppol/convert/iso_schematron_message.xsl +55 -0
- data/spec/schema/open_peppol/convert/iso_schematron_skeleton_for_xslt1.xsl +1844 -0
- data/spec/schema/open_peppol/convert/iso_svrl_for_xslt1.xsl +605 -0
- data/spec/schema/open_peppol/general/SI-UBL-GENERAL.SCH +10 -0
- data/spec/schema/open_peppol/lib/saxon.jar +0 -0
- data/spec/schema/open_peppol/v1.0/SI-UBL-CRE-100.SCH +459 -0
- data/spec/schema/open_peppol/v1.0/SI-UBL-CRE-100.XSL +1298 -0
- data/spec/schema/open_peppol/v1.0/SI-UBL-INV-100.SCH +531 -0
- data/spec/schema/open_peppol/v1.0/SI-UBL-INV-100.XSL +1457 -0
- data/spec/schema/open_peppol/v1.0/SI-UBL-INV-V10-FATAL.SCH +45 -0
- data/spec/schema/open_peppol/v1.0/SI-UBL-INV-V10-WARNING.SCH +467 -0
- data/spec/schema/open_peppol/v1.0/biicore/abstract/BIICORE-T10.sch +433 -0
- data/spec/schema/open_peppol/v1.0/biicore/ubl/BIICORE-UBL-T10.sch +425 -0
- data/spec/schema/open_peppol/v1.0/biiprofiles/UBL/BIIPROFILES-UBL-T10.sch +14 -0
- data/spec/schema/open_peppol/v1.0/biiprofiles/abstract/BIIPROFILES-T10.sch +16 -0
- data/spec/schema/open_peppol/v1.0/biirules/UBL/BIIRULES-UBL-T10.sch +70 -0
- data/spec/schema/open_peppol/v1.0/biirules/abstract/BIIRULES-T10.sch +91 -0
- data/spec/schema/open_peppol/v1.0/biirules/codelist/BIIRULESCodesT10.sch +47 -0
- data/spec/schema/open_peppol/v1.0/eugen/UBL/EUGEN-UBL-T10.sch +45 -0
- data/spec/schema/open_peppol/v1.0/eugen/abstract/EUGEN-T10.sch +57 -0
- data/spec/schema/open_peppol/v1.0/eugen/codelist/EUGENCodesT10.sch +47 -0
- data/spec/schema/open_peppol/v1.1/BII/BIICORE-UBL-T10-V1.0.sch +6879 -0
- data/spec/schema/open_peppol/v1.1/BII/BIIRULES-UBL-T10.sch +28 -0
- data/spec/schema/open_peppol/v1.1/BII/BIIRULES-UBL-T10.xsl +1186 -0
- data/spec/schema/open_peppol/v1.1/BII/UBL/BIIRULES-UBL-T10.sch +80 -0
- data/spec/schema/open_peppol/v1.1/BII/abstract/BIIRULES-T10.sch +78 -0
- data/spec/schema/open_peppol/v1.1/BII/codelist/BIIRULESCodesT10-UBL.sch +55 -0
- data/spec/schema/open_peppol/v1.1/BII/convert.bat +7 -0
- data/spec/schema/open_peppol/v1.1/PEPPOL/OPENPEPPOL-UBL-T10.sch +28 -0
- data/spec/schema/open_peppol/v1.1/PEPPOL/UBL/OPENPEPPOL-UBL-T10.sch +62 -0
- data/spec/schema/open_peppol/v1.1/PEPPOL/abstract/OPENPEPPOL-T10.sch +82 -0
- data/spec/schema/open_peppol/v1.1/PEPPOL/codelist/OPENPEPPOLCodesT10-UBL.sch +47 -0
- data/spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-Codes.SCH +24 -0
- data/spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-FATAL.SCH +103 -0
- data/spec/schema/open_peppol/v1.1/SI-UBL-INV-V11-WARNING.SCH +498 -0
- data/spec/schema/open_peppol/v1.1/V1.1-Check.sch +3 -0
- data/spec/schema_spec.rb +12 -0
- 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.
|
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:
|
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
|